homepage Welcome to WebmasterWorld Guest from 54.197.171.109
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
XLST Formatting Help Needed
DevZero




msg:4409305
 2:29 am on Jan 21, 2012 (gmt 0)

I'm new to XML Development, and needed some assistance with an XSL that I'm trying to write.

I don't understand why it's not listing the <TOKEN> and <MIJ> tags. Also, I really only want it to display the pages that are either CHECK, BTSUMMARY_2011_0841_P1, BTSUMMARY_2011_0841_P2, or BTSUMMARY_2011_0841_P3.

Here's my sample XML:

<?xml version="1.0" ?>
- <BATCH PROCESSDATE="20120120">
<BATCHDIRPATH>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\</BATCHDIRPATH>
<BATCHNUMBER>08412011100002_001</BATCHNUMBER>
<BATCHSOURCE>QIBMLInput</BATCHSOURCE>
<BATCHTYPE>MasterMoney</BATCHTYPE>
<DATERECEIVED>20120117</DATERECEIVED>
<DATESCANNED>20120117</DATESCANNED>
<IBMLIMAGEPATH>c:\batches\08412011FFAX_435970002</IBMLIMAGEPATH>
<IBMLOPERATOR>admin</IBMLOPERATOR>
<IBMLSCANNERID>FFAX_43597</IBMLSCANNERID>
<NUMCHECKS>0</NUMCHECKS>
<NUMPAGES>24</NUMPAGES>
<NUMRETS>0</NUMRETS>
<NUMSUBS>1</NUMSUBS>
<NUMVIRTUALBATCHES>6</NUMVIRTUALBATCHES>
<ORIGINALBATCHNUMBER>08412011100002</ORIGINALBATCHNUMBER>
<ORIGNUMSUBS>6</ORIGNUMSUBS>
<REMITBATCHNUMBER />
<SCANPROFILE>MasterMoney084</SCANPROFILE>
<SUBBATCHTYPE>Others</SUBBATCHTYPE>
<TOTALCOLLECTED>0</TOTALCOLLECTED>
- <SUBMISSION SUBNUM="1">
- <PAGE PAGENUM="1">
- <TOKEN>
<ARTIFICIAL_OCR>0</ARTIFICIAL_OCR>
<BARCODE />
<DOCID>1</DOCID>
<ERRORSTATUS />
<IBMLFORMNAME>Check</IBMLFORMNAME>
<IMAGEFILENAME_1>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\10000001.tif</IMAGEFILENAME_1>
<IMAGEFILENAME_2>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\11000001.jpg</IMAGEFILENAME_2>
<IMAGEFILENAMECOLOR>11000001.jpg</IMAGEFILENAMECOLOR>
<IMAGESIDE>Front</IMAGESIDE>
<IMGFILENAME>10000001.tif</IMGFILENAME>
<PAGEDLN>08412011FFAX_435970002_0001</PAGEDLN>
<PAGEINDEX>0</PAGEINDEX>
<PCAERROR>0</PCAERROR>
<PCAPELAPSESECOND>0.922667825096141</PCAPELAPSESECOND>
<PDATACAPTURE>Y</PDATACAPTURE>
<PDFAMTCOR>0</PDFAMTCOR>
<PDFAMTRAW>0</PDFAMTRAW>
<PFORMIDMETHOD />
<PFORMTYPE>CHECK</PFORMTYPE>
<PFORMTYPERAW>CHECK</PFORMTYPERAW>
<PPAGENUM>1</PPAGENUM>
<PPAGETYPE>FORM</PPAGETYPE>
<PRETNUM>0</PRETNUM>
<PSCANLINE><001003< :011401533: 1123456789<</PSCANLINE>
<PSLERROR>0</PSLERROR>
<PSUBNUM>1</PSUBNUM>
<PSZAMTCOR />
<PSZAMTRAW />
</TOKEN>
- <MIJ>
<CHECKAMOUNT CONFIDENCE="290">3202.00</CHECKAMOUNT>
<PMICRLINE CONFIDENCE="0" />
<PAUXILIARYONUS CONFIDENCE="1000">001003</PAUXILIARYONUS>
<PEPC CONFIDENCE="1000" />
<PROUTING CONFIDENCE="1000">011401533</PROUTING>
<PONUS CONFIDENCE="1000">1123456789<</PONUS>
<PACCTNUM CONFIDENCE="1000">1123456789</PACCTNUM>
<PCHECKNUM CONFIDENCE="1000">001003</PCHECKNUM>
</MIJ>
</PAGE>
- <PAGE PAGENUM="2">
- <TOKEN>
<BARCODE />
<DOCID>1</DOCID>
<ERRORSTATUS />
<IBMLFORMNAME>Check</IBMLFORMNAME>
<IMAGEFILENAME_1>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\20000001.tif</IMAGEFILENAME_1>
<IMAGEFILENAME_2>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\21000001.jpg</IMAGEFILENAME_2>
<IMAGEFILENAMECOLOR>21000001.jpg</IMAGEFILENAMECOLOR>
<IMAGESIDE>Back</IMAGESIDE>
<IMGFILENAME>20000001.tif</IMGFILENAME>
<PAGEDLN>08412011FFAX_435970002_0001</PAGEDLN>
<PAGEINDEX>1</PAGEINDEX>
<PCAERROR>0</PCAERROR>
<PDATACAPTURE>N</PDATACAPTURE>
<PDFAMTCOR>0</PDFAMTCOR>
<PDFAMTRAW>0</PDFAMTRAW>
<PFORMIDMETHOD />
<PFORMTYPE>CHECK_R</PFORMTYPE>
<PFORMTYPERAW>CHECK_R</PFORMTYPERAW>
<PPAGENUM>2</PPAGENUM>
<PPAGETYPE>FORM</PPAGETYPE>
<PRETNUM>0</PRETNUM>
<PSCANLINE><001003< :011401533: 1123456789<</PSCANLINE>
<PSLERROR>0</PSLERROR>
<PSUBNUM>1</PSUBNUM>
<PSZAMTCOR />
<PSZAMTRAW />
</TOKEN>
<MIJ />
</PAGE>
- <PAGE PAGENUM="3">
- <TOKEN>
<ARTIFICIAL_OCR>0</ARTIFICIAL_OCR>
<BARCODE>0BTSUM1110841</BARCODE>
<DOCID>2</DOCID>
<ERRORSTATUS />
<IBMLFIELD3OF9>0BTSUM1110841</IBMLFIELD3OF9>
<IBMLFORMNAME>BT-SUMMARY page 1</IBMLFORMNAME>
<IMAGEFILENAME_1>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\10000002.tif</IMAGEFILENAME_1>
<IMAGEFILENAME_2>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\11000002.jpg</IMAGEFILENAME_2>
<IMAGEFILENAMECOLOR>11000002.jpg</IMAGEFILENAMECOLOR>
<IMAGESIDE>Front</IMAGESIDE>
<IMGFILENAME>10000002.tif</IMGFILENAME>
<PAGEDLN>08412011FFAX_435970002_0002</PAGEDLN>
<PAGEINDEX>2</PAGEINDEX>
<PCAERROR>0</PCAERROR>
<PCAPELAPSESECOND>4.1378976936976</PCAPELAPSESECOND>
<PDATACAPTURE>Y</PDATACAPTURE>
<PDFAMTCOR>0</PDFAMTCOR>
<PDFAMTRAW>0</PDFAMTRAW>
<PFORMIDMETHOD />
<PFORMTYPE>BTSUMMARY_2011_0841_P1</PFORMTYPE>
<PFORMTYPERAW>BTSUMMARY_2011_0841_P1</PFORMTYPERAW>
<PPAGENUM>3</PPAGENUM>
<PPAGETYPE>FORM</PPAGETYPE>
<PRETNUM>0</PRETNUM>
<PSCANLINE />
<PSLERROR>0</PSLERROR>
<PSUBNUM>1</PSUBNUM>
<PSZAMTCOR />
<PSZAMTRAW />
</TOKEN>
- <MIJ>
<PERBEGDT CONFIDENCE="900">0101201</PERBEGDT>
<PERENDDT CONFIDENCE="900">91231201</PERENDDT>
<FORMERNAMECB CONFIDENCE="560">1</FORMERNAMECB>
<FORMERNAME CONFIDENCE="253">INNCNEIASTNIIING UMSTFORMCERNAMME NN I N 7</FORMERNAME>
<LASTNM1 CONFIDENCE="564">PROPRIETOBHIP BSR NA NE</LASTNM1>
<FIRSTNM1 CONFIDENCE="552">AETNAME</FIRSTNM1>
<MIDINIT1 CONFIDENCE="941">M</MIDINIT1>
<INDVIDNO1 CONFIDENCE="355">728089011</INDVIDNO1>
<LASTNM2 CONFIDENCE="304">JOINTI OWNEDPMPEN UANANE</LASTNM2>
<FIRSTNM2 CONFIDENCE="675">ABTNAME</FIRSTNM2>
<MIDINIT2 CONFIDENCE="923">M</MIDINIT2>
<INDVIDNO2 CONFIDENCE="328">338039811</INDVIDNO2>
<PRIMNM CONFIDENCE="254">CIIRP1ONMTOE PTAANIE SI P AT NATEITINI RST</PRIMNM>
<BUSIDNO CONFIDENCE="294">702800280</BUSIDNO>
<PIACODE CONFIDENCE="286">081100</PIACODE>
<STRADDR1 CONFIDENCE="93">NUNNBBN ERKSNTREETNADDRESS NN</STRADDR1>
<STRADDR2 CONFIDENCE="71">ADDRESS FCONTINUEDI</STRADDR2>
<CITY CONFIDENCE="361">CITYLTOWNA N</CITY>
<STATE CONFIDENCE="812">NS</STATE>
<ZIPPSTLCD CONFIDENCE="75">ZIIPIACDEF</ZIPPSTLCD>
<BETCBY CONFIDENCE="1000">0</BETCBY>
<BETCBN CONFIDENCE="1000">0</BETCBN>
<BPTCBY CONFIDENCE="1000">0</BPTCBY>
<BPTCBN CONFIDENCE="1000">0</BPTCBN>
<NP990TFLGY CONFIDENCE="1000">0</NP990TFLGY>
<NP990TFLGN CONFIDENCE="808">0</NP990TFLGN>
<CORPCB CONFIDENCE="1000">1</CORPCB>
<COMBCB CONFIDENCE="392">0</COMBCB>
<PARTCB CONFIDENCE="1000">1</PARTCB>
<NPCB CONFIDENCE="1000">0</NPCB>
<PROPCB CONFIDENCE="792">1</PROPCB>
<FIDCB CONFIDENCE="1000">0</FIDCB>
<AMNDRTNFLG CONFIDENCE="1000">1</AMNDRTNFLG>
<FINLRTNFLG CONFIDENCE="1000">0</FINLRTNFLG>
<RP87FLAG CONFIDENCE="1000">0</RP87FLAG>
<RP87YRS CONFIDENCE="136">608102010510000011</RP87YRS>
</MIJ>
</PAGE>
- <PAGE PAGENUM="4">
- <TOKEN>
<ARTIFICIAL_OCR>0</ARTIFICIAL_OCR>
<BARCODE>0BTSUM1110841</BARCODE>
<DOCID>2</DOCID>
<ERRORSTATUS />
<IBMLFORMNAME>BT-SUMMARY page 1</IBMLFORMNAME>
<IMAGEFILENAME_1>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\20000002.tif</IMAGEFILENAME_1>
<IMAGEFILENAME_2>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\21000002.jpg</IMAGEFILENAME_2>
<IMAGEFILENAMECOLOR>21000002.jpg</IMAGEFILENAMECOLOR>
<IMAGESIDE>Back</IMAGESIDE>
<IMGFILENAME>20000002.tif</IMGFILENAME>
<PAGEDLN>08412011FFAX_435970002_0002</PAGEDLN>
<PAGEINDEX>3</PAGEINDEX>
<PCAERROR>0</PCAERROR>
<PCAPELAPSESECOND>0.930081057787902</PCAPELAPSESECOND>
<PDATACAPTURE>Y</PDATACAPTURE>
<PDFAMTCOR>0</PDFAMTCOR>
<PDFAMTRAW>0</PDFAMTRAW>
<PFORMIDMETHOD />
<PFORMTYPE>ATTACHMENT</PFORMTYPE>
<PFORMTYPERAW>ATTACHMENT</PFORMTYPERAW>
<PPAGENUM>4</PPAGENUM>
<PPAGETYPE>FORM</PPAGETYPE>
<PRETNUM>0</PRETNUM>
<PSCANLINE />
<PSLERROR>0</PSLERROR>
<PSUBNUM>1</PSUBNUM>
<PSZAMTCOR />
<PSZAMTRAW />
</TOKEN>
- <MIJ>
<DUMMY CONFIDENCE="0" />
</MIJ>
</PAGE>
- <PAGE PAGENUM="5">
- <TOKEN>
<ARTIFICIAL_OCR>0</ARTIFICIAL_OCR>
<BARCODE>0BTSUM1120841</BARCODE>
<DOCID>3</DOCID>
<ERRORSTATUS />
<IBMLFIELD3OF9>0BTSUM1120841</IBMLFIELD3OF9>
<IBMLFORMNAME>BT-Summary page 2</IBMLFORMNAME>
<IMAGEFILENAME_1>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\10000003.tif</IMAGEFILENAME_1>
<IMAGEFILENAME_2>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\11000003.jpg</IMAGEFILENAME_2>
<IMAGEFILENAMECOLOR>11000003.jpg</IMAGEFILENAMECOLOR>
<IMAGESIDE>Front</IMAGESIDE>
<IMGFILENAME>10000003.tif</IMGFILENAME>
<PAGEDLN>08412011FFAX_435970002_0003</PAGEDLN>
<PAGEINDEX>4</PAGEINDEX>
<PCAERROR>0</PCAERROR>
<PCAPELAPSESECOND>3.77495044761235</PCAPELAPSESECOND>
<PDATACAPTURE>Y</PDATACAPTURE>
<PDFAMTCOR>0</PDFAMTCOR>
<PDFAMTRAW>0</PDFAMTRAW>
<PFORMIDMETHOD />
<PFORMTYPE>BTSUMMARY_2011_0841_P2</PFORMTYPE>
<PFORMTYPERAW>BTSUMMARY_2011_0841_P2</PFORMTYPERAW>
<PPAGENUM>5</PPAGENUM>
<PPAGETYPE>FORM</PPAGETYPE>
<PRETNUM>0</PRETNUM>
<PSCANLINE />
<PSLERROR>0</PSLERROR>
<PSUBNUM>1</PSUBNUM>
<PSZAMTCOR />
<PSZAMTRAW />
</TOKEN>
- <MIJ>
<CRSUB CONFIDENCE="905">,43</CRSUB>
<TAXNETSTCR CONFIDENCE="950">19947</TAXNETSTCR>
<TOTTAXNET CONFIDENCE="925">19990</TOTTAXNET>
<TOTEXTN CONFIDENCE="0" />
<TOTESTIM CONFIDENCE="926">12500</TOTESTIM>
<TOTPREVYR CONFIDENCE="786">11288</TOTPREVYR>
<TOTPDORIG CONFIDENCE="0" />
<TOTPYMT CONFIDENCE="941">16788</TOTPYMT>
<BALTAXDUE CONFIDENCE="895">8202</BALTAXDUE>
<TOTINT CONFIDENCE="0" />
<TOTFP CONFIDENCE="0" />
<TOTFF CONFIDENCE="0" />
<TOTUND CONFIDENCE="0" />
<TOTADDTN CONFIDENCE="0" />
<SUBTOTAL5A CONFIDENCE="606">,3023</SUBTOTAL5A>
<EFTRETPYT CONFIDENCE="0" />
<BALANCEDUE CONFIDENCE="0" />
<OVRPYMT CONFIDENCE="0" />
<OVRPYMTCR CONFIDENCE="0" />
<OVRPYMTRFD CONFIDENCE="0" />
</MIJ>
</PAGE>
- <PAGE PAGENUM="6">
- <TOKEN>
<ARTIFICIAL_OCR>0</ARTIFICIAL_OCR>
<BARCODE>0BTSUM1120841</BARCODE>
<DOCID>3</DOCID>
<ERRORSTATUS />
<IBMLFORMNAME>BT-Summary page 2</IBMLFORMNAME>
<IMAGEFILENAME_1>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\20000003.tif</IMAGEFILENAME_1>
<IMAGEFILENAME_2>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\21000003.jpg</IMAGEFILENAME_2>
<IMAGEFILENAMECOLOR>21000003.jpg</IMAGEFILENAMECOLOR>
<IMAGESIDE>Back</IMAGESIDE>
<IMGFILENAME>20000003.tif</IMGFILENAME>
<PAGEDLN>08412011FFAX_435970002_0003</PAGEDLN>
<PAGEINDEX>5</PAGEINDEX>
<PCAERROR>0</PCAERROR>
<PCAPELAPSESECOND>0.142443522847316</PCAPELAPSESECOND>
<PDATACAPTURE>Y</PDATACAPTURE>
<PDFAMTCOR>0</PDFAMTCOR>
<PDFAMTRAW>0</PDFAMTRAW>
<PFORMIDMETHOD />
<PFORMTYPE>ATTACHMENT</PFORMTYPE>
<PFORMTYPERAW>ATTACHMENT</PFORMTYPERAW>
<PPAGENUM>6</PPAGENUM>
<PPAGETYPE>FORM</PPAGETYPE>
<PRETNUM>0</PRETNUM>
<PSCANLINE />
<PSLERROR>0</PSLERROR>
<PSUBNUM>1</PSUBNUM>
<PSZAMTCOR />
<PSZAMTRAW />
</TOKEN>
- <MIJ>
<DUMMY CONFIDENCE="0" />
</MIJ>
</PAGE>
- <PAGE PAGENUM="7">
- <TOKEN>
<ARTIFICIAL_OCR>0</ARTIFICIAL_OCR>
<BARCODE>0BTSUM1130841</BARCODE>
<DOCID>4</DOCID>
<ERRORSTATUS />
<IBMLFIELD3OF9>0BTSUM1130841</IBMLFIELD3OF9>
<IBMLFORMNAME>BT-Summary page 3</IBMLFORMNAME>
<IMAGEFILENAME_1>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\10000004.tif</IMAGEFILENAME_1>
<IMAGEFILENAME_2>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\11000004.jpg</IMAGEFILENAME_2>
<IMAGEFILENAMECOLOR>11000004.jpg</IMAGEFILENAMECOLOR>
<IMAGESIDE>Front</IMAGESIDE>
<IMGFILENAME>10000004.tif</IMGFILENAME>
<PAGEDLN>08412011FFAX_435970002_0004</PAGEDLN>
<PAGEINDEX>6</PAGEINDEX>
<PCAERROR>0</PCAERROR>
<PCAPELAPSESECOND>1.20544063561101</PCAPELAPSESECOND>
<PDATACAPTURE>Y</PDATACAPTURE>
<PDFAMTCOR>0</PDFAMTCOR>
<PDFAMTRAW>0</PDFAMTRAW>
<PFORMIDMETHOD />
<PFORMTYPE>BTSUMMARY_2011_0841_P3</PFORMTYPE>
<PFORMTYPERAW>BTSUMMARY_2011_0841_P3</PFORMTYPERAW>
<PPAGENUM>7</PPAGENUM>
<PPAGETYPE>FORM</PPAGETYPE>
<PRETNUM>0</PRETNUM>
<PSCANLINE />
<PSLERROR>0</PSLERROR>
<PSUBNUM>1</PSUBNUM>
<PSZAMTCOR />
<PSZAMTRAW />
</TOKEN>
- <MIJ>
<POAFLG CONFIDENCE="1000">0</POAFLG>
<SIGNEDFLG CONFIDENCE="1000">1</SIGNEDFLG>
<SIGNSPSFLG CONFIDENCE="1000">0</SIGNSPSFLG>
<SIGNNAME CONFIDENCE="900">I</SIGNNAME>
<SIGNEMAIL CONFIDENCE="0" />
<SIGNTELE CONFIDENCE="0" />
<SURVSPSFLG CONFIDENCE="1000">0</SURVSPSFLG>
<PREPARNAME CONFIDENCE="0">JOHIU ?WV IM</PREPARNAME>
<PREPREMAIL CONFIDENCE="0" />
<PREPRTELE CONFIDENCE="940">6032891065</PREPRTELE>
<PREPRID CONFIDENCE="166">133456725</PREPRID>
<STRADDR1 CONFIDENCE="0" />
<STRADDR2 CONFIDENCE="0" />
<CITY CONFIDENCE="891">PL EASANT ST</CITY>
<STATE CONFIDENCE="0" />
<ZIPPSTLCD CONFIDENCE="0" />
</MIJ>
</PAGE>
- <PAGE PAGENUM="8">
- <TOKEN>
<ARTIFICIAL_OCR>0</ARTIFICIAL_OCR>
<BARCODE>0BTSUM1130841</BARCODE>
<DOCID>4</DOCID>
<ERRORSTATUS />
<IBMLFORMNAME>BT-Summary page 3</IBMLFORMNAME>
<IMAGEFILENAME_1>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\20000004.tif</IMAGEFILENAME_1>
<IMAGEFILENAME_2>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\21000004.jpg</IMAGEFILENAME_2>
<IMAGEFILENAMECOLOR>21000004.jpg</IMAGEFILENAMECOLOR>
<IMAGESIDE>Back</IMAGESIDE>
<IMGFILENAME>20000004.tif</IMGFILENAME>
<PAGEDLN>08412011FFAX_435970002_0004</PAGEDLN>
<PAGEINDEX>7</PAGEINDEX>
<PCAERROR>0</PCAERROR>
<PCAPELAPSESECOND>0.621659177355468</PCAPELAPSESECOND>
<PDATACAPTURE>Y</PDATACAPTURE>
<PDFAMTCOR>0</PDFAMTCOR>
<PDFAMTRAW>0</PDFAMTRAW>
<PFORMIDMETHOD />
<PFORMTYPE>ATTACHMENT</PFORMTYPE>
<PFORMTYPERAW>ATTACHMENT</PFORMTYPERAW>
<PPAGENUM>8</PPAGENUM>
<PPAGETYPE>FORM</PPAGETYPE>
<PRETNUM>0</PRETNUM>
<PSCANLINE />
<PSLERROR>0</PSLERROR>
<PSUBNUM>1</PSUBNUM>
<PSZAMTCOR />
<PSZAMTRAW />
</TOKEN>
- <MIJ>
<DUMMY CONFIDENCE="0" />
</MIJ>
</PAGE>
- <PAGE PAGENUM="9">
- <TOKEN>
<ARTIFICIAL_OCR>0</ARTIFICIAL_OCR>
<BARCODE>0011201110841</BARCODE>
<DOCID>5</DOCID>
<ERRORSTATUS />
<IBMLFIELD3OF9>0011201110841</IBMLFIELD3OF9>
<IBMLFORMNAME>NH-1120 page 1</IBMLFORMNAME>
<IMAGEFILENAME_1>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\10000005.tif</IMAGEFILENAME_1>
<IMAGEFILENAME_2>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\11000005.jpg</IMAGEFILENAME_2>
<IMAGEFILENAMECOLOR>11000005.jpg</IMAGEFILENAMECOLOR>
<IMAGESIDE>Front</IMAGESIDE>
<IMGFILENAME>10000005.tif</IMGFILENAME>
<PAGEDLN>08412011FFAX_435970002_0005</PAGEDLN>
<PAGEINDEX>8</PAGEINDEX>
<PCAERROR>0</PCAERROR>
<PCAPELAPSESECOND>1.99137404334761</PCAPELAPSESECOND>
<PDATACAPTURE>Y</PDATACAPTURE>
<PDFAMTCOR>0</PDFAMTCOR>
<PDFAMTRAW>0</PDFAMTRAW>
<PFORMIDMETHOD />
<PFORMTYPE>NH1120_2011_0841_P1</PFORMTYPE>
<PFORMTYPERAW>NH1120_2011_0841_P1</PFORMTYPERAW>
<PPAGENUM>9</PPAGENUM>
<PPAGETYPE>FORM</PPAGETYPE>
<PRETNUM>0</PRETNUM>
<PSCANLINE />
<PSLERROR>0</PSLERROR>
<PSUBNUM>1</PSUBNUM>
<PSZAMTCOR />
<PSZAMTRAW />
</TOKEN>
- <MIJ>
<PRIMNM CONFIDENCE="288">LIDKTHHIY1EY3ICQADISMAAJILIAD607QRP</PRIMNM>
<BUSIDNO CONFIDENCE="950">38255133</BUSIDNO>
<PERBEGDT CONFIDENCE="900">01012011</PERBEGDT>
<PERENDDT CONFIDENCE="406">2312061</PERENDDT>
<GRBPTOT CONFIDENCE="935">8327544</GRBPTOT>
<IRC179EXP CONFIDENCE="938">480000</IRC179EXP>
<IRCBONDEPR CONFIDENCE="0" />
<IRCDOMPROD CONFIDENCE="0" />
<IRCOTHDEDF CONFIDENCE="771">0720001</IRCOTHDEDF>
<IRCADDDEPR CONFIDENCE="355">037</IRCADDDEPR>
<IRCOTHITEM CONFIDENCE="0" />
<IRCSLSALL CONFIDENCE="0" />
<IRCSUBTOT CONFIDENCE="0" />
<IRCCNETINC CONFIDENCE="0" />
<ADJNTITY CONFIDENCE="0" />
<ADJUSINT CONFIDENCE="911">2528</ADJUSINT>
<ADJTAXES CONFIDENCE="900">397107</ADJTAXES>
<ADJIRC337 CONFIDENCE="0" />
<ADJWAGES CONFIDENCE="0" />
<ADJEXPEXIN CONFIDENCE="0" />
<ADJFORGN CONFIDENCE="0" />
<ADJRESRCH CONFIDENCE="0" />
</MIJ>
</PAGE>
- <PAGE PAGENUM="10">
- <TOKEN>
<ARTIFICIAL_OCR>0</ARTIFICIAL_OCR>
<BARCODE>0011201110841</BARCODE>
<DOCID>5</DOCID>
<ERRORSTATUS />
<IBMLFORMNAME>NH-1120 page 1</IBMLFORMNAME>
<IMAGEFILENAME_1>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\20000005.tif</IMAGEFILENAME_1>
<IMAGEFILENAME_2>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\21000005.jpg</IMAGEFILENAME_2>
<IMAGEFILENAMECOLOR>21000005.jpg</IMAGEFILENAMECOLOR>
<IMAGESIDE>Back</IMAGESIDE>
<IMGFILENAME>20000005.tif</IMGFILENAME>
<PAGEDLN>08412011FFAX_435970002_0005</PAGEDLN>
<PAGEINDEX>9</PAGEINDEX>
<PCAERROR>0</PCAERROR>
<PCAPELAPSESECOND>0.130812994386361</PCAPELAPSESECOND>
<PDATACAPTURE>Y</PDATACAPTURE>
<PDFAMTCOR>0</PDFAMTCOR>
<PDFAMTRAW>0</PDFAMTRAW>
<PFORMIDMETHOD />
<PFORMTYPE>ATTACHMENT</PFORMTYPE>
<PFORMTYPERAW>ATTACHMENT</PFORMTYPERAW>
<PPAGENUM>10</PPAGENUM>
<PPAGETYPE>FORM</PPAGETYPE>
<PRETNUM>0</PRETNUM>
<PSCANLINE />
<PSLERROR>0</PSLERROR>
<PSUBNUM>1</PSUBNUM>
<PSZAMTCOR />
<PSZAMTRAW />
</TOKEN>
- <MIJ>
<DUMMY CONFIDENCE="0" />
</MIJ>
</PAGE>
</SUBMISSION>
</BATCH>

And here is my XSL:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" version="1.0" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:apply-templates select="BATCH"/>
</xsl:template>
<xsl:template match="BATCH">
<BATCH>
<xsl:attribute name="PROCESSDATE">
<xsl:value-of select="@PROCESSDATE"/>
</xsl:attribute>
<BATCHDIRPATH>
<xsl:value-of select="BATCHDIRPATH"/>
</BATCHDIRPATH>
<BATCHNUMBER>
<xsl:value-of select="BATCHNUMBER"/>
</BATCHNUMBER>
<BATCHSOURCE>
<xsl:value-of select="BATCHSOURCE"/>
</BATCHSOURCE>
<BATCHTYPE>
<xsl:value-of select ="BATCHTYPE"/>
</BATCHTYPE>
<DATERECIEVED>
<xsl:value-of select="DATERECEIVED"/>
</DATERECIEVED>
<DATESCANNED>
<xsl:value-of select="DATESCANNED"/>
</DATESCANNED>
<SCANNER>
<xsl:value-of select="IBMLSCANNERID"/>
</SCANNER>
<xsl:for-each select="SUBMISSION">
<SUBMISSION>
<xsl:attribute name="SUBNUM">
<xsl:value-of select="@SUBNUM"/>
</xsl:attribute>
<xsl:for-each select="PAGE">
<PAGE>
<xsl:attribute name="PAGENUM">
<xsl:value-of select="@PAGENUM"/>
</xsl:attribute>
<xsl:if test="PAGE/TOKEN/PFORMTYPE=CHECK">
<xsl:call-template name="CHECK"/>
</xsl:if>
<xsl:if test="PAGE/TOKEN/PFORMTYPE='BTSUMMARY_2011_0841_P1'">
<xsl:call-template name="BT-SUMMARY-P1"/>
</xsl:if>
<xsl:if test="PAGE/TOKEN/PFORMTYPE='BTSUMMARY_2011_0841_P2'">
<xsl:call-template name ="BT-SUMMARY-P2"/>
</xsl:if>
<xsl:if test="PAGE/TOKEN/PFORMTYPE='BTSUMMARY_2011_0841_P3'">
<xsl:call-template name="BT-SUMMARY-P3"/>
</xsl:if>
</PAGE>
</xsl:for-each>
</SUBMISSION>
</xsl:for-each>
</BATCH>
</xsl:template>
<xsl:template name="CHECK">
<TOKEN>
</TOKEN>
<MIJ>
</MIJ>
</xsl:template>
<xsl:template name="BT-SUMMARY-P1">
<TOKEN>
</TOKEN>
<MIJ>
</MIJ>
</xsl:template>
<xsl:template name="BT-SUMMARY-P2">
<TOKEN>
</TOKEN>
<MIJ>
</MIJ>
</xsl:template>
<xsl:template name="BT-SUMMARY-P3">
<TOKEN>
</TOKEN>
<MIJ>
</MIJ>
</xsl:template>
</xsl:stylesheet>

Here is the output I'm currently getting:

<?xml version="1.0" encoding="UTF-8"?>
<BATCH PROCESSDATE="20120120">
<BATCHDIRPATH>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\</BATCHDIRPATH>
<BATCHNUMBER>08412011100002_001</BATCHNUMBER>
<BATCHSOURCE>QIBMLInput</BATCHSOURCE>
<BATCHTYPE>MasterMoney</BATCHTYPE>
<DATERECIEVED>20120117</DATERECIEVED>
<DATESCANNED>20120117</DATESCANNED>
<SCANNER>FFAX_43597</SCANNER>
<SUBMISSION SUBNUM="1">
<PAGE PAGENUM="1"/>
<PAGE PAGENUM="2"/>
<PAGE PAGENUM="3"/>
<PAGE PAGENUM="4"/>
<PAGE PAGENUM="5"/>
<PAGE PAGENUM="6"/>
<PAGE PAGENUM="7"/>
<PAGE PAGENUM="8"/>
<PAGE PAGENUM="9"/>
<PAGE PAGENUM="10"/>
</SUBMISSION>
</BATCH>

I've been using Altova to debug, but I don't see a problem.

Can someone PLEASE help?

Thank you.

 

Dijkgraaf




msg:4410919
 2:05 am on Jan 26, 2012 (gmt 0)

These lines would cause quite a problem as you are using reserved XML characters in the data.
<PSCANLINE><001003< :011401533: 1123456789<</PSCANLINE>

<PONUS CONFIDENCE="1000">1123456789<</PONUS>

I'm assuming they were actually encoded but when you copied it by viewing in your browser it introduced that issue (as well as the - in front of some nodes).
After fixing those I got the same output as yourself.

The problem you have is your test
<xsl:if test="PAGE/TOKEN/PFORMTYPE=CHECK">
As you are already in PAGE (for-each) you need to remove the PAGE/ and you also need single quotes around CHECK
<xsl:if test="TOKEN/PFORMTYPE='CHECK'">

After fixing that test, and the 3 following I get

<?xml version="1.0" encoding="utf-8"?>
<BATCH PROCESSDATE="20120120">
<BATCHDIRPATH>D:\qmserver35\IMAGES\OUT\2012\01\17\08412011100002\</BATCHDIRPATH>
<BATCHNUMBER>08412011100002_001</BATCHNUMBER>
<BATCHSOURCE>QIBMLInput</BATCHSOURCE>
<BATCHTYPE>MasterMoney</BATCHTYPE>
<DATERECIEVED>20120117</DATERECIEVED>
<DATESCANNED>20120117</DATESCANNED>
<SCANNER>FFAX_43597</SCANNER>
<SUBMISSION SUBNUM="1">
<PAGE PAGENUM="1">
<TOKEN />
<MIJ />
</PAGE>
<PAGE PAGENUM="2" />
<PAGE PAGENUM="3">
<TOKEN />
<MIJ />
</PAGE>
<PAGE PAGENUM="4" />
<PAGE PAGENUM="5">
<TOKEN />
<MIJ />
</PAGE>
<PAGE PAGENUM="6" />
<PAGE PAGENUM="7">
<TOKEN />
<MIJ />
</PAGE>
<PAGE PAGENUM="8" />
<PAGE PAGENUM="9" />
<PAGE PAGENUM="10" />
</SUBMISSION>
</BATCH>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved