I am still stuck on this. I Have <xsl:output method="text"/> and it
seems to want to output XML. Anyone seen this before? I swear the first time I ran it it output text. Now it produces this error. This must be a bug The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. ------------------------------------------------------------------------ -------- Invalid at the top level of the document. Error processing resource 'http://24.75.221.234:8080/taxcode/xforms-server-submit... <?xml version="1.0" encoding="utf-8"?>1017**** --------------------------------------^ -----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Friday, March 10, 2006 4:33 PM To: [hidden email] Subject: RE: [ops-users] Almost Resolved: Transforming instance using XSLT Well almost, the first time I did it it worked. But then I hit it again a couple minutes later and now it does XML even though xsl:output method = "text". AHHHHHHHH. I also noticed that it was not converting   to a non breaking space in xalan the way it was in MSXML. -----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Friday, March 10, 2006 4:21 PM To: [hidden email] Subject: RE: [ops-users] Resolved: Transforming instance using XSLT <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xforms="http://www.w3.org/2002/xforms"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:for-each select="doc('input:instance')/form/f1040ez/*"> [<xsl:value-of select="substring-after(name(.),'SEQ') "/>] <xsl:value-of select="."/> </xsl:for-each> </xsl:template> </xsl:stylesheet> -----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Friday, March 10, 2006 4:18 PM To: [hidden email] Subject: RE: [ops-users] Transforming instance using XSLT Obviously that wont work because match="<pattern" ok. So I tried: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xforms="http://www.w3.org/2002/xforms"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:for-each select="doc('input:instance')/f1040ez/*"> [<xsl:value-of select="substring-after(name(.),'SEQ') "/>] <xsl:value-of select="."/> </xsl:for-each> </xsl:template> </xsl:stylesheet> And it doesn't bomb but doesn't output anything. Getting closer. -----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Friday, March 10, 2006 10:00 AM To: [hidden email] Subject: RE: [ops-users] Transforming instance using XSLT Hi Alex Where do I put the doc('input:instance') In the stylesheet I know this doesn't work: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xforms="http://www.w3.org/2002/xforms"> <xsl:output method="text"/> <xsl:template match="doc('input:instance')//form"> <xsl:for-each select="*/*[. != '']"> [<xsl:value-of select="substring-after(name(.),'SEQ') "/>] <xsl:value-of select="."/> </xsl:for-each> </xsl:template> </xsl:stylesheet> Richard -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: Thursday, March 09, 2006 8:07 PM To: [hidden email] Subject: Re: [ops-users] Transforming instance using XSLT Hi Richard, 1) In XForms, you can execute a <xforms:submission replace="all" action="someURI"/>. This will make a request at someURI. 2) Then in the page-flow.xml, you have a <page path-info="someURI" view="your-file.xsl">. This will run your-file.xsl. 3) In your-file.xsl, use doc('input:instance') to have access to the submitted instance and generate the page you want based on the submitted instance. So actually, you don't even need XPL in this case. Alex On 3/6/06, Richard Braman <[hidden email]> wrote: > > Now that I am back into XPL (now that most of my Xforms controls are > done for 1040EZ, except a few bugs) My learning cure is back to steep. > I want to call xpl pipeline to convert my xforms instance into a text file > using the following xslt on my instance and return the rsults as in a > window, or better yet prmot the user to save them on a trigger. > > I am not sure where to put my xslt. > > I am still also having problems serializing instance and using upload > controls. > > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > <xsl:output method="text"/> > <xsl:template match="//form"> > <xsl:for-each select="*/*[. != '']"> > [<xsl:value-of select="substring-after(name(.),'SEQ') > "/>] > <xsl:value-of select="."/> > </xsl:for-each> > </xsl:template> > </xsl:stylesheet> > </p:config> > > how would i go about doing this? > > My gues would be to enclose the > > > > Richard Braman > mailto:[hidden email] > 561.748.4002 (voice) > > http://www.taxcodesoftware.org > Free Open Source Tax Software > > > -- > You receive this message as a subscriber of the > [hidden email] mailing list. To unsubscribe: > mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: > http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws message-footer.txt (290 bytes) Download Attachment |
Richard,
Could you provide some XML and the XSLT? Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: 13 March 2006 16:14 >To: [hidden email] >Subject: [ops-users] Bug? Transforming instance using <XSL:output >method='text'> returns XML > >I am still stuck on this. I Have <xsl:output method="text"/> and it >seems to want to output XML. Anyone seen this before? I swear the >first time I ran it it output text. Now it produces this error. This >must be a bug > >The XML page cannot be displayed >Cannot view XML input using style sheet. Please correct the error and >then click the Refresh button, or try again later. > > >------------------------------------------------------------------------ >-------- > >Invalid at the top level of the document. Error processing resource >'http://24.75.221.234:8080/taxcode/xforms-server-submit... > ><?xml version="1.0" encoding="utf-8"?>1017**** >--------------------------------------^ > >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: Friday, March 10, 2006 4:33 PM >To: [hidden email] >Subject: RE: [ops-users] Almost Resolved: Transforming instance using >XSLT > > >Well almost, the first time I did it it worked. But then I hit it again >a couple minutes later and now it does XML even though xsl:output method >= "text". AHHHHHHHH. > >I also noticed that it was not converting   to a non breaking space >in xalan the way it was in MSXML. > > > >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: Friday, March 10, 2006 4:21 PM >To: [hidden email] >Subject: RE: [ops-users] Resolved: Transforming instance using XSLT > > ><xsl:stylesheet version="1.0" >xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >xmlns:xforms="http://www.w3.org/2002/xforms"> > <xsl:output method="text"/> > <xsl:template match="/"> > <xsl:for-each >select="doc('input:instance')/form/f1040ez/*"> > [<xsl:value-of >select="substring-after(name(.),'SEQ') "/>] > <xsl:value-of select="."/> > </xsl:for-each> > </xsl:template> ></xsl:stylesheet> > >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: Friday, March 10, 2006 4:18 PM >To: [hidden email] >Subject: RE: [ops-users] Transforming instance using XSLT > > >Obviously that wont work because match="<pattern" ok. So I tried: > ><xsl:stylesheet version="1.0" >xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >xmlns:xforms="http://www.w3.org/2002/xforms"> > <xsl:output method="text"/> > <xsl:template match="/"> > <xsl:for-each select="doc('input:instance')/f1040ez/*"> > [<xsl:value-of >select="substring-after(name(.),'SEQ') "/>] > <xsl:value-of select="."/> > </xsl:for-each> > </xsl:template> ></xsl:stylesheet> > >And it doesn't bomb but doesn't output anything. Getting closer. > >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: Friday, March 10, 2006 10:00 AM >To: [hidden email] >Subject: RE: [ops-users] Transforming instance using XSLT > > >Hi Alex > >Where do I put the doc('input:instance') >In the stylesheet > >I know this doesn't work: > ><xsl:stylesheet version="1.0" >xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >xmlns:xforms="http://www.w3.org/2002/xforms"> > <xsl:output method="text"/> > <xsl:template match="doc('input:instance')//form"> > <xsl:for-each select="*/*[. != '']"> > [<xsl:value-of select="substring-after(name(.),'SEQ') "/>] > <xsl:value-of select="."/> > </xsl:for-each> > </xsl:template> ></xsl:stylesheet> > >Richard > >-----Original Message----- >From: [hidden email] [mailto:[hidden email]] On Behalf Of >Alessandro Vernet >Sent: Thursday, March 09, 2006 8:07 PM >To: [hidden email] >Subject: Re: [ops-users] Transforming instance using XSLT > > >Hi Richard, > >1) In XForms, you can execute a <xforms:submission replace="all" >action="someURI"/>. This will make a request at someURI. >2) Then in the page-flow.xml, you have a <page path-info="someURI" >view="your-file.xsl">. This will run your-file.xsl. >3) In your-file.xsl, use doc('input:instance') to have access to the >submitted instance and generate the page you want based on the submitted >instance. > >So actually, you don't even need XPL in this case. > >Alex > >On 3/6/06, Richard Braman <[hidden email]> wrote: >> >> Now that I am back into XPL (now that most of my Xforms controls are >> done for 1040EZ, except a few bugs) My learning cure is back to steep. > >> I want to call xpl pipeline to convert my xforms instance into a text >file >> using the following xslt on my instance and return the rsults as in a >> window, or better yet prmot the user to save them on a trigger. >> >> I am not sure where to put my xslt. >> >> I am still also having problems serializing instance and using upload >> controls. >> >> >> <xsl:stylesheet version="1.0" >> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> >> <xsl:output method="text"/> >> <xsl:template match="//form"> >> <xsl:for-each select="*/*[. != '']"> >> [<xsl:value-of select="substring-after(name(.),'SEQ') >> "/>] >> <xsl:value-of select="."/> >> </xsl:for-each> >> </xsl:template> >> </xsl:stylesheet> >> </p:config> >> >> how would i go about doing this? >> >> My gues would be to enclose the >> >> >> >> Richard Braman >> mailto:[hidden email] >> 561.748.4002 (voice) >> >> http://www.taxcodesoftware.org >> Free Open Source Tax Software >> >> >> -- >> You receive this message as a subscriber of the >> [hidden email] mailing list. To unsubscribe: >> mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: >> http://www.objectweb.org/wws >> >> >> > > >-- >Blog (XML, Web apps, Open Source): >http://www.orbeon.com/blog/ > > > > > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi Ryan. Steps to reproduce http://24.75.221.234:8080/taxcode/1040ez
Click View tyour efile button at the very very bottom of the page. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xforms="http://www.w3.org/2002/xforms"> <xsl:output method="text"/> <xsl:template match="/"> <xsl:for-each select="doc('input:instance')/form/f1040ez/*"> [<xsl:value-of select="substring-after(name(.),'SEQ') "/>] <xsl:value-of select="."/> </xsl:for-each> </xsl:template> </xsl:stylesheet> XML instance <form> <f1040ez> <ByteCount>1017</ByteCount> <StartofRecordSentinel>****</StartofRecordSentinel> <SEQ0000>RET   </SEQ0000> <SEQ0001>1040Z </SEQ0001> <SEQ0002>PG01 </SEQ0002> <SEQ0003 /> <!-- Primary SSN --> <SEQ0004> </SEQ0004> <SEQ0005>200512</SEQ0005> <SEQ0006> </SEQ0006> <SEQ0007 /> <SEQ0008 /> <SEQ0010>400001001</SEQ0010> <SEQ0020 /> <SEQ0030>400002001</SEQ0030> <SEQ0040 /> <SEQ0050 /> <SEQ0055 /> <SEQ0060>TEST I<WHY<GWEN R KNOTT</SEQ0060> <SEQ0062 /> <SEQ0064 /> <SEQ0066 /> <SEQ0070 /> <SEQ0080>12457 WILSHIRE-ON-THE-HAMPTONS BLVD</SEQ0080> <SEQ0083>WYNOT</SEQ0083> <SEQ0087>NE</SEQ0087> <SEQ0095>68792</SEQ0095> <SEQ0097 /> <SEQ0098 /> <SEQ0100 /> <SEQ0110 /> <SEQ0115 /> <SEQ0120 /> <SEQ0125 /> <SEQ0135 /> <SEQ0357 /> <SEQ0358 /> <SEQ0362 /> <SEQ0364 /> <SEQ0366 /> <SEQ0368 /> <SEQ0372 /> <SEQ0373 /> <SEQ0375>0</SEQ0375> <SEQ0378>0</SEQ0378> <SEQ0379 /> <SEQ0380>63</SEQ0380> <SEQ0382 /> <SEQ0385 /> <SEQ0545 /> <SEQ0551 /> <SEQ0552>0</SEQ0552> <SEQ0750 /> <SEQ0770 /> <SEQ0775 /> <SEQ0815 /> <SEQ0820 /> <SEQ1155 /> <SEQ1160 /> <SEQ1178 /> <SEQ1180 /> <SEQ1183 /> <SEQ1185 /> <SEQ1195 /> <SEQ1197 /> <SEQ1250 /> <SEQ1256 /> <SEQ1262 /> <SEQ1263 /> <SEQ1270 /> <SEQ1272>123456780</SEQ1272> <SEQ1274>X</SEQ1274> <SEQ1276 /> <SEQ1278>02135763</SEQ1278> <SEQ1290 /> <SEQ1303 /> <SEQ1305 /> <SEQ1307>JOHN DOE</SEQ1307> <SEQ1309>8885551111</SEQ1309> <SEQ1313 /> <SEQ1315 /> <SEQ1321 /> <SEQ1323>MILITARY</SEQ1323> <SEQ1324 /> <SEQ1325 /> <SEQ1326 /> <SEQ1327>HOUSEWIFE</SEQ1327> <SEQ1328>8885551111</SEQ1328> <SEQ1338 /> <SEQ1340 /> <SEQ1350 /> <SEQ1360>123456789</SEQ1360> <SEQ1370>TCSF</SEQ1370> <SEQ1380>123456789</SEQ1380> <SEQ1390>JUPITER</SEQ1390> <SEQ1400>FL</SEQ1400> <SEQ1410>33469</SEQ1410> <SEQ1420>5617484002</SEQ1420> <SEQ1465 /> <SEQ1470 /> <RecordTerminusCharacter>#</RecordTerminusCharacter> </f1040ez> </form> -----Original Message----- From: Ryan Puddephatt [mailto:[hidden email]] Sent: Monday, March 13, 2006 11:32 AM To: [hidden email] Subject: RE: [ops-users] Bug? Transforming instance using <XSL:output method='text'> returns XML Richard, Could you provide some XML and the XSLT? Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: 13 March 2006 16:14 >To: [hidden email] >Subject: [ops-users] Bug? Transforming instance using <XSL:output >method='text'> returns XML > >I am still stuck on this. I Have <xsl:output method="text"/> and it >seems to want to output XML. Anyone seen this before? I swear the >first time I ran it it output text. Now it produces this error. This >must be a bug > >The XML page cannot be displayed >Cannot view XML input using style sheet. Please correct the error and >then click the Refresh button, or try again later. > > >----------------------------------------------------------------------- >- >-------- > >Invalid at the top level of the document. Error processing resource >'http://24.75.221.234:8080/taxcode/xforms-server-submit... > ><?xml version="1.0" encoding="utf-8"?>1017**** >--------------------------------------^ > >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: Friday, March 10, 2006 4:33 PM >To: [hidden email] >Subject: RE: [ops-users] Almost Resolved: Transforming instance using >XSLT > > >Well almost, the first time I did it it worked. But then I hit it >again a couple minutes later and now it does XML even though xsl:output >method = "text". AHHHHHHHH. > >I also noticed that it was not converting   to a non breaking >space in xalan the way it was in MSXML. > > > >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: Friday, March 10, 2006 4:21 PM >To: [hidden email] >Subject: RE: [ops-users] Resolved: Transforming instance using XSLT > > ><xsl:stylesheet version="1.0" >xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >xmlns:xforms="http://www.w3.org/2002/xforms"> > <xsl:output method="text"/> > <xsl:template match="/"> > <xsl:for-each >select="doc('input:instance')/form/f1040ez/*"> > [<xsl:value-of >select="substring-after(name(.),'SEQ') "/>] > <xsl:value-of select="."/> > </xsl:for-each> > </xsl:template> ></xsl:stylesheet> > >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: Friday, March 10, 2006 4:18 PM >To: [hidden email] >Subject: RE: [ops-users] Transforming instance using XSLT > > >Obviously that wont work because match="<pattern" ok. So I tried: > ><xsl:stylesheet version="1.0" >xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >xmlns:xforms="http://www.w3.org/2002/xforms"> > <xsl:output method="text"/> > <xsl:template match="/"> > <xsl:for-each select="doc('input:instance')/f1040ez/*"> > [<xsl:value-of >select="substring-after(name(.),'SEQ') "/>] > <xsl:value-of select="."/> > </xsl:for-each> > </xsl:template> ></xsl:stylesheet> > >And it doesn't bomb but doesn't output anything. Getting closer. > >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: Friday, March 10, 2006 10:00 AM >To: [hidden email] >Subject: RE: [ops-users] Transforming instance using XSLT > > >Hi Alex > >Where do I put the doc('input:instance') >In the stylesheet > >I know this doesn't work: > ><xsl:stylesheet version="1.0" >xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >xmlns:xforms="http://www.w3.org/2002/xforms"> > <xsl:output method="text"/> > <xsl:template match="doc('input:instance')//form"> > <xsl:for-each select="*/*[. != '']"> > [<xsl:value-of select="substring-after(name(.),'SEQ') "/>] > <xsl:value-of select="."/> > </xsl:for-each> > </xsl:template> ></xsl:stylesheet> > >Richard > >-----Original Message----- >From: [hidden email] [mailto:[hidden email]] On Behalf Of >Alessandro Vernet >Sent: Thursday, March 09, 2006 8:07 PM >To: [hidden email] >Subject: Re: [ops-users] Transforming instance using XSLT > > >Hi Richard, > >1) In XForms, you can execute a <xforms:submission replace="all" >action="someURI"/>. This will make a request at someURI. >2) Then in the page-flow.xml, you have a <page path-info="someURI" >view="your-file.xsl">. This will run your-file.xsl. >3) In your-file.xsl, use doc('input:instance') to have access to the >submitted instance and generate the page you want based on the >submitted instance. > >So actually, you don't even need XPL in this case. > >Alex > >On 3/6/06, Richard Braman <[hidden email]> wrote: >> >> Now that I am back into XPL (now that most of my Xforms controls are >> done for 1040EZ, except a few bugs) My learning cure is back to >> steep. > >> I want to call xpl pipeline to convert my xforms instance into a >> text >file >> using the following xslt on my instance and return the rsults as in a >> window, or better yet prmot the user to save them on a trigger. >> >> I am not sure where to put my xslt. >> >> I am still also having problems serializing instance and using upload >> controls. >> >> >> <xsl:stylesheet version="1.0" >> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> >> <xsl:output method="text"/> >> <xsl:template match="//form"> >> <xsl:for-each select="*/*[. != '']"> >> [<xsl:value-of select="substring-after(name(.),'SEQ') >> "/>] >> <xsl:value-of select="."/> >> </xsl:for-each> >> </xsl:template> >> </xsl:stylesheet> >> </p:config> >> >> how would i go about doing this? >> >> My gues would be to enclose the >> >> >> >> Richard Braman >> mailto:[hidden email] >> 561.748.4002 (voice) >> >> http://www.taxcodesoftware.org >> Free Open Source Tax Software >> >> >> -- >> You receive this message as a subscriber of the >> [hidden email] mailing list. To unsubscribe: >> mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: >> http://www.objectweb.org/wws >> >> >> > > >-- >Blog (XML, Web apps, Open Source): >http://www.orbeon.com/blog/ > > > > > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Richard,
A few things, I loaded up the page in firefox and got loads of errors (have you got a mouse handler on if so its failing) It seems the problems are with your data! I ran this in stylus studio and it had problems with the escaped   in SEQ0004 and SEQ0006 as they didn't have ; after them and <SEQ0060>TEST I<WHY<GWEN R KNOTT</SEQ0060> Isn't allowed because it contains < they must be escaped to < It ran fine and gave me the output in text hope this helps [] 1017 [] **** [0000] RET [0001] 1040Z [0002] PG01 [0003] [0004] [0005] 200512 [0006] [0007] [0008] [0010] 400001001 [0020] [0030] 400002001 [0040] [0050] [0055] [0060] TEST I<WHY<GWEN R KNOTT [0062] [0064] [0066] [0070] [0080] 12457 WILSHIRE-ON-THE-HAMPTONS BLVD [0083] WYNOT [0087] NE [0095] 68792 [0097] [0098] [0100] [0110] [0115] [0120] [0125] [0135] [0357] [0358] [0362] [0364] [0366] [0368] [0372] [0373] [0375] 0 [0378] 0 [0379] [0380] 63 [0382] [0385] [0545] [0551] [0552] 0 [0750] [0770] [0775] [0815] [0820] [1155] [1160] [1178] [1180] [1183] [1185] [1195] [1197] [1250] [1256] [1262] [1263] [1270] [1272] 123456780 [1274] X [1276] [1278] 02135763 [1290] [1303] [1305] [1307] JOHN DOE [1309] 8885551111 [1313] [1315] [1321] [1323] MILITARY [1324] [1325] [1326] [1327] HOUSEWIFE [1328] 8885551111 [1338] [1340] [1350] [1360] 123456789 [1370] TCSF [1380] 123456789 [1390] JUPITER [1400] FL [1410] 33469 [1420] 5617484002 [1465] [1470] [] # Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: 13 March 2006 16:31 >To: [hidden email] >Subject: RE: [ops-users] Bug? Transforming instance using <XSL:output >method='text'> returns XML > >Hi Ryan. Steps to reproduce http://24.75.221.234:8080/taxcode/1040ez >Click View tyour efile button at the very very bottom of the page. > ><xsl:stylesheet version="1.0" >xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >xmlns:xforms="http://www.w3.org/2002/xforms"> > <xsl:output method="text"/> > <xsl:template match="/"> > <xsl:for-each >select="doc('input:instance')/form/f1040ez/*"> > [<xsl:value-of >select="substring-after(name(.),'SEQ') "/>] > <xsl:value-of select="."/> > </xsl:for-each> > </xsl:template> ></xsl:stylesheet> > >XML instance > <form> > <f1040ez> > <ByteCount>1017</ByteCount> > <StartofRecordSentinel>****</StartofRecordSentinel> > <SEQ0000>RET   </SEQ0000> > <SEQ0001>1040Z </SEQ0001> > <SEQ0002>PG01 </SEQ0002> > <SEQ0003 /> > <!-- Primary SSN > --> > <SEQ0004> </SEQ0004> > <SEQ0005>200512</SEQ0005> > <SEQ0006> </SEQ0006> > <SEQ0007 /> > <SEQ0008 /> > <SEQ0010>400001001</SEQ0010> > <SEQ0020 /> > <SEQ0030>400002001</SEQ0030> > <SEQ0040 /> > <SEQ0050 /> > <SEQ0055 /> > <SEQ0060>TEST I<WHY<GWEN R KNOTT</SEQ0060> > <SEQ0062 /> > <SEQ0064 /> > <SEQ0066 /> > <SEQ0070 /> > <SEQ0080>12457 WILSHIRE-ON-THE-HAMPTONS BLVD</SEQ0080> > <SEQ0083>WYNOT</SEQ0083> > <SEQ0087>NE</SEQ0087> > <SEQ0095>68792</SEQ0095> > <SEQ0097 /> > <SEQ0098 /> > <SEQ0100 /> > <SEQ0110 /> > <SEQ0115 /> > <SEQ0120 /> > <SEQ0125 /> > <SEQ0135 /> > <SEQ0357 /> > <SEQ0358 /> > <SEQ0362 /> > <SEQ0364 /> > <SEQ0366 /> > <SEQ0368 /> > <SEQ0372 /> > <SEQ0373 /> > <SEQ0375>0</SEQ0375> > <SEQ0378>0</SEQ0378> > <SEQ0379 /> > <SEQ0380>63</SEQ0380> > <SEQ0382 /> > <SEQ0385 /> > <SEQ0545 /> > <SEQ0551 /> > <SEQ0552>0</SEQ0552> > <SEQ0750 /> > <SEQ0770 /> > <SEQ0775 /> > <SEQ0815 /> > <SEQ0820 /> > <SEQ1155 /> > <SEQ1160 /> > <SEQ1178 /> > <SEQ1180 /> > <SEQ1183 /> > <SEQ1185 /> > <SEQ1195 /> > <SEQ1197 /> > <SEQ1250 /> > <SEQ1256 /> > <SEQ1262 /> > <SEQ1263 /> > <SEQ1270 /> > <SEQ1272>123456780</SEQ1272> > <SEQ1274>X</SEQ1274> > <SEQ1276 /> > <SEQ1278>02135763</SEQ1278> > <SEQ1290 /> > <SEQ1303 /> > <SEQ1305 /> > <SEQ1307>JOHN DOE</SEQ1307> > <SEQ1309>8885551111</SEQ1309> > <SEQ1313 /> > <SEQ1315 /> > <SEQ1321 /> > <SEQ1323>MILITARY</SEQ1323> > <SEQ1324 /> > <SEQ1325 /> > <SEQ1326 /> > <SEQ1327>HOUSEWIFE</SEQ1327> > <SEQ1328>8885551111</SEQ1328> > <SEQ1338 /> > <SEQ1340 /> > <SEQ1350 /> > <SEQ1360>123456789</SEQ1360> > <SEQ1370>TCSF</SEQ1370> > <SEQ1380>123456789</SEQ1380> > <SEQ1390>JUPITER</SEQ1390> > <SEQ1400>FL</SEQ1400> > <SEQ1410>33469</SEQ1410> > <SEQ1420>5617484002</SEQ1420> > <SEQ1465 /> > <SEQ1470 /> > <RecordTerminusCharacter>#</RecordTerminusCharacter> > </f1040ez> > </form> > > > >-----Original Message----- >From: Ryan Puddephatt [mailto:[hidden email]] >Sent: Monday, March 13, 2006 11:32 AM >To: [hidden email] >Subject: RE: [ops-users] Bug? Transforming instance using <XSL:output >method='text'> returns XML > > >Richard, > Could you provide some XML and the XSLT? > >Ryan Puddephatt >Software Engineer >TFX Group - IT UK >1 Michaelson Square >Livingston >West Lothian >Scotand >EH54 7DP > >* [hidden email] >( 01506 407 110 >7 01506 407 108 > > >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: 13 March 2006 16:14 >>To: [hidden email] >>Subject: [ops-users] Bug? Transforming instance using <XSL:output >>method='text'> returns XML >> >>I am still stuck on this. I Have <xsl:output method="text"/> and it >>seems to want to output XML. Anyone seen this before? I swear the >>first time I ran it it output text. Now it produces this error. This >>must be a bug >> >>The XML page cannot be displayed >>Cannot view XML input using style sheet. Please correct the error and >>then click the Refresh button, or try again later. >> >> >>----------------------------------------------------------------------- >>- >>-------- >> >>Invalid at the top level of the document. Error processing resource >>'http://24.75.221.234:8080/taxcode/xforms-server-submit... >> >><?xml version="1.0" encoding="utf-8"?>1017**** >>--------------------------------------^ >> >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: Friday, March 10, 2006 4:33 PM >>To: [hidden email] >>Subject: RE: [ops-users] Almost Resolved: Transforming instance using >>XSLT >> >> >>Well almost, the first time I did it it worked. But then I hit it >>again a couple minutes later and now it does XML even though xsl:output > >>method = "text". AHHHHHHHH. >> >>I also noticed that it was not converting   to a non breaking >>space in xalan the way it was in MSXML. >> >> >> >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: Friday, March 10, 2006 4:21 PM >>To: [hidden email] >>Subject: RE: [ops-users] Resolved: Transforming instance using XSLT >> >> >><xsl:stylesheet version="1.0" >>xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >>xmlns:xforms="http://www.w3.org/2002/xforms"> >> <xsl:output method="text"/> >> <xsl:template match="/"> >> <xsl:for-each >>select="doc('input:instance')/form/f1040ez/*"> >> [<xsl:value-of >>select="substring-after(name(.),'SEQ') "/>] >> <xsl:value-of select="."/> >> </xsl:for-each> >> </xsl:template> >></xsl:stylesheet> >> >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: Friday, March 10, 2006 4:18 PM >>To: [hidden email] >>Subject: RE: [ops-users] Transforming instance using XSLT >> >> >>Obviously that wont work because match="<pattern" ok. So I tried: >> >><xsl:stylesheet version="1.0" >>xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >>xmlns:xforms="http://www.w3.org/2002/xforms"> >> <xsl:output method="text"/> >> <xsl:template match="/"> >> <xsl:for-each select="doc('input:instance')/f1040ez/*"> >> [<xsl:value-of >>select="substring-after(name(.),'SEQ') "/>] >> <xsl:value-of select="."/> >> </xsl:for-each> >> </xsl:template> >></xsl:stylesheet> >> >>And it doesn't bomb but doesn't output anything. Getting closer. >> >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: Friday, March 10, 2006 10:00 AM >>To: [hidden email] >>Subject: RE: [ops-users] Transforming instance using XSLT >> >> >>Hi Alex >> >>Where do I put the doc('input:instance') >>In the stylesheet >> >>I know this doesn't work: >> >><xsl:stylesheet version="1.0" >>xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >>xmlns:xforms="http://www.w3.org/2002/xforms"> >> <xsl:output method="text"/> >> <xsl:template match="doc('input:instance')//form"> >> <xsl:for-each select="*/*[. != '']"> >> [<xsl:value-of select="substring-after(name(.),'SEQ') "/>] >> <xsl:value-of select="."/> >> </xsl:for-each> >> </xsl:template> >></xsl:stylesheet> >> >>Richard >> >>-----Original Message----- >>From: [hidden email] [mailto:[hidden email]] On Behalf Of >>Alessandro Vernet >>Sent: Thursday, March 09, 2006 8:07 PM >>To: [hidden email] >>Subject: Re: [ops-users] Transforming instance using XSLT >> >> >>Hi Richard, >> >>1) In XForms, you can execute a <xforms:submission replace="all" >>action="someURI"/>. This will make a request at someURI. >>2) Then in the page-flow.xml, you have a <page path-info="someURI" >>view="your-file.xsl">. This will run your-file.xsl. >>3) In your-file.xsl, use doc('input:instance') to have access to the >>submitted instance and generate the page you want based on the >>submitted instance. >> >>So actually, you don't even need XPL in this case. >> >>Alex >> >>On 3/6/06, Richard Braman <[hidden email]> wrote: >>> >>> Now that I am back into XPL (now that most of my Xforms controls are >>> done for 1040EZ, except a few bugs) My learning cure is back to >>> steep. >> >>> I want to call xpl pipeline to convert my xforms instance into a >>> text >>file >>> using the following xslt on my instance and return the rsults as in a > >>> window, or better yet prmot the user to save them on a trigger. >>> >>> I am not sure where to put my xslt. >>> >>> I am still also having problems serializing instance and using upload > >>> controls. >>> >>> >>> <xsl:stylesheet version="1.0" >>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> >>> <xsl:output method="text"/> >>> <xsl:template match="//form"> >>> <xsl:for-each select="*/*[. != '']"> >>> [<xsl:value-of select="substring-after(name(.),'SEQ') >>> "/>] >>> <xsl:value-of select="."/> >>> </xsl:for-each> >>> </xsl:template> >>> </xsl:stylesheet> >>> </p:config> >>> >>> how would i go about doing this? >>> >>> My gues would be to enclose the >>> >>> >>> >>> Richard Braman >>> mailto:[hidden email] >>> 561.748.4002 (voice) >>> >>> http://www.taxcodesoftware.org >>> Free Open Source Tax Software >>> >>> >>> -- >>> You receive this message as a subscriber of the >>> [hidden email] mailing list. To unsubscribe: >>> mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> ObjectWeb mailing lists service home page: >>> http://www.objectweb.org/wws >>> >>> >>> >> >> >>-- >>Blog (XML, Web apps, Open Source): >>http://www.orbeon.com/blog/ >> >> >> >> >> >> >> >> > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Ryan,
Thats not it. I do have the > escaped. I mistekenly copied the xml from IE instead of the XML editor. I turned off the mouseover, something I had turned on to help with the absolute positions. This is the instance. <form> <f1040ez> <ByteCount>1017</ByteCount> <StartofRecordSentinel>****</StartofRecordSentinel> <SEQ0000>RET&#xa0;&#xa0;&#xa0;</SEQ0000> <SEQ0001>1040Z&#xa0;</SEQ0001> <SEQ0002>PG01&#xa0;</SEQ0002> <SEQ0003/><!--Primary SSN--> <SEQ0004>&#xa0</SEQ0004> <SEQ0005>200512</SEQ0005> <SEQ0006>&#xa0</SEQ0006> <SEQ0007/> <SEQ0008/> <SEQ0010>400001001</SEQ0010> <SEQ0020/> <SEQ0030>400002001</SEQ0030> <SEQ0040/> <SEQ0050/> <SEQ0055/> <SEQ0060>TEST I<WHY<GWEN R KNOTT </SEQ0060> <SEQ0062/> <SEQ0064/> <SEQ0066/> <SEQ0070/> <SEQ0080>12457 WILSHIRE-ON-THE-HAMPTONS BLVD</SEQ0080> <SEQ0083>WYNOT</SEQ0083> <SEQ0087>NE</SEQ0087> <SEQ0095>68792</SEQ0095> <SEQ0097/> <SEQ0098/> <SEQ0100/> <SEQ0110></SEQ0110> <SEQ0115/> <SEQ0120/> <SEQ0125/> <SEQ0135/> <SEQ0357/> <SEQ0358/> <SEQ0362/> <SEQ0364/> <SEQ0366/> <SEQ0368/> <SEQ0372/> <SEQ0373/> <SEQ0375>0</SEQ0375> <SEQ0378>0</SEQ0378> <SEQ0379/> <SEQ0380>63</SEQ0380> <SEQ0382/> <SEQ0385/> <SEQ0545/> <SEQ0551/> <SEQ0552>0</SEQ0552> <SEQ0750/> <SEQ0770></SEQ0770> <SEQ0775/> <SEQ0815/> <SEQ0820/> <SEQ1155/> <SEQ1160/> <SEQ1178/> <SEQ1180/> <SEQ1183/> <SEQ1185/> <SEQ1195/> <SEQ1197/> <SEQ1250/> <SEQ1256/> <SEQ1262/> <SEQ1263/> <SEQ1270/> <SEQ1272>123456780</SEQ1272> <SEQ1274>X</SEQ1274> <SEQ1276/> <SEQ1278>02135763</SEQ1278> <SEQ1290/> <SEQ1303/> <SEQ1305/> <SEQ1307>JOHN DOE</SEQ1307> <SEQ1309>8885551111</SEQ1309> <SEQ1313/> <SEQ1315/> <SEQ1321/> <SEQ1323>MILITARY</SEQ1323> <SEQ1324/> <SEQ1325/> <SEQ1326/> <SEQ1327>HOUSEWIFE</SEQ1327> <SEQ1328>8885551111</SEQ1328> <SEQ1338/> <SEQ1340/> <SEQ1350/> <SEQ1360>123456789</SEQ1360> <SEQ1370>TCSF</SEQ1370> <SEQ1380>123456789</SEQ1380> <SEQ1390>JUPITER</SEQ1390> <SEQ1400>FL</SEQ1400> <SEQ1410>33469</SEQ1410> <SEQ1420>5617484002</SEQ1420> <SEQ1465/> <SEQ1470/> <RecordTerminusCharacter>#</RecordTerminusCharacter> </f1040ez> </form> -----Original Message----- From: Ryan Puddephatt [mailto:[hidden email]] Sent: Monday, March 13, 2006 12:33 PM To: [hidden email] Subject: RE: [ops-users] Bug? Transforming instance using <XSL:output method='text'> returns XML Richard, A few things, I loaded up the page in firefox and got loads of errors (have you got a mouse handler on if so its failing) It seems the problems are with your data! I ran this in stylus studio and it had problems with the escaped   in SEQ0004 and SEQ0006 as they didn't have ; after them and <SEQ0060>TEST I<WHY<GWEN R KNOTT</SEQ0060> Isn't allowed because it contains < they must be escaped to < It ran fine and gave me the output in text hope this helps [] 1017 [] **** [0000] RET [0001] 1040Z [0002] PG01 [0003] [0004] [0005] 200512 [0006] [0007] [0008] [0010] 400001001 [0020] [0030] 400002001 [0040] [0050] [0055] [0060] TEST I<WHY<GWEN R KNOTT [0062] [0064] [0066] [0070] [0080] 12457 WILSHIRE-ON-THE-HAMPTONS BLVD [0083] WYNOT [0087] NE [0095] 68792 [0097] [0098] [0100] [0110] [0115] [0120] [0125] [0135] [0357] [0358] [0362] [0364] [0366] [0368] [0372] [0373] [0375] 0 [0378] 0 [0379] [0380] 63 [0382] [0385] [0545] [0551] [0552] 0 [0750] [0770] [0775] [0815] [0820] [1155] [1160] [1178] [1180] [1183] [1185] [1195] [1197] [1250] [1256] [1262] [1263] [1270] [1272] 123456780 [1274] X [1276] [1278] 02135763 [1290] [1303] [1305] [1307] JOHN DOE [1309] 8885551111 [1313] [1315] [1321] [1323] MILITARY [1324] [1325] [1326] [1327] HOUSEWIFE [1328] 8885551111 [1338] [1340] [1350] [1360] 123456789 [1370] TCSF [1380] 123456789 [1390] JUPITER [1400] FL [1410] 33469 [1420] 5617484002 [1465] [1470] [] # Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: 13 March 2006 16:31 >To: [hidden email] >Subject: RE: [ops-users] Bug? Transforming instance using <XSL:output >method='text'> returns XML > >Hi Ryan. Steps to reproduce http://24.75.221.234:8080/taxcode/1040ez >Click View tyour efile button at the very very bottom of the page. > ><xsl:stylesheet version="1.0" >xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >xmlns:xforms="http://www.w3.org/2002/xforms"> > <xsl:output method="text"/> > <xsl:template match="/"> > <xsl:for-each >select="doc('input:instance')/form/f1040ez/*"> > [<xsl:value-of >select="substring-after(name(.),'SEQ') "/>] > <xsl:value-of select="."/> > </xsl:for-each> > </xsl:template> ></xsl:stylesheet> > >XML instance > <form> > <f1040ez> > <ByteCount>1017</ByteCount> > <StartofRecordSentinel>****</StartofRecordSentinel> > <SEQ0000>RET   </SEQ0000> > <SEQ0001>1040Z </SEQ0001> > <SEQ0002>PG01 </SEQ0002> > <SEQ0003 /> > <!-- Primary SSN > --> > <SEQ0004> </SEQ0004> > <SEQ0005>200512</SEQ0005> > <SEQ0006> </SEQ0006> > <SEQ0007 /> > <SEQ0008 /> > <SEQ0010>400001001</SEQ0010> > <SEQ0020 /> > <SEQ0030>400002001</SEQ0030> > <SEQ0040 /> > <SEQ0050 /> > <SEQ0055 /> > <SEQ0060>TEST I<WHY<GWEN R KNOTT</SEQ0060> > <SEQ0062 /> > <SEQ0064 /> > <SEQ0066 /> > <SEQ0070 /> > <SEQ0080>12457 WILSHIRE-ON-THE-HAMPTONS BLVD</SEQ0080> > <SEQ0083>WYNOT</SEQ0083> > <SEQ0087>NE</SEQ0087> > <SEQ0095>68792</SEQ0095> > <SEQ0097 /> > <SEQ0098 /> > <SEQ0100 /> > <SEQ0110 /> > <SEQ0115 /> > <SEQ0120 /> > <SEQ0125 /> > <SEQ0135 /> > <SEQ0357 /> > <SEQ0358 /> > <SEQ0362 /> > <SEQ0364 /> > <SEQ0366 /> > <SEQ0368 /> > <SEQ0372 /> > <SEQ0373 /> > <SEQ0375>0</SEQ0375> > <SEQ0378>0</SEQ0378> > <SEQ0379 /> > <SEQ0380>63</SEQ0380> > <SEQ0382 /> > <SEQ0385 /> > <SEQ0545 /> > <SEQ0551 /> > <SEQ0552>0</SEQ0552> > <SEQ0750 /> > <SEQ0770 /> > <SEQ0775 /> > <SEQ0815 /> > <SEQ0820 /> > <SEQ1155 /> > <SEQ1160 /> > <SEQ1178 /> > <SEQ1180 /> > <SEQ1183 /> > <SEQ1185 /> > <SEQ1195 /> > <SEQ1197 /> > <SEQ1250 /> > <SEQ1256 /> > <SEQ1262 /> > <SEQ1263 /> > <SEQ1270 /> > <SEQ1272>123456780</SEQ1272> > <SEQ1274>X</SEQ1274> > <SEQ1276 /> > <SEQ1278>02135763</SEQ1278> > <SEQ1290 /> > <SEQ1303 /> > <SEQ1305 /> > <SEQ1307>JOHN DOE</SEQ1307> > <SEQ1309>8885551111</SEQ1309> > <SEQ1313 /> > <SEQ1315 /> > <SEQ1321 /> > <SEQ1323>MILITARY</SEQ1323> > <SEQ1324 /> > <SEQ1325 /> > <SEQ1326 /> > <SEQ1327>HOUSEWIFE</SEQ1327> > <SEQ1328>8885551111</SEQ1328> > <SEQ1338 /> > <SEQ1340 /> > <SEQ1350 /> > <SEQ1360>123456789</SEQ1360> > <SEQ1370>TCSF</SEQ1370> > <SEQ1380>123456789</SEQ1380> > <SEQ1390>JUPITER</SEQ1390> > <SEQ1400>FL</SEQ1400> > <SEQ1410>33469</SEQ1410> > <SEQ1420>5617484002</SEQ1420> > <SEQ1465 /> > <SEQ1470 /> > <RecordTerminusCharacter>#</RecordTerminusCharacter> > </f1040ez> > </form> > > > >-----Original Message----- >From: Ryan Puddephatt [mailto:[hidden email]] >Sent: Monday, March 13, 2006 11:32 AM >To: [hidden email] >Subject: RE: [ops-users] Bug? Transforming instance using <XSL:output >method='text'> returns XML > > >Richard, > Could you provide some XML and the XSLT? > >Ryan Puddephatt >Software Engineer >TFX Group - IT UK >1 Michaelson Square >Livingston >West Lothian >Scotand >EH54 7DP > >* [hidden email] >( 01506 407 110 >7 01506 407 108 > > >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: 13 March 2006 16:14 >>To: [hidden email] >>Subject: [ops-users] Bug? Transforming instance using <XSL:output >>method='text'> returns XML >> >>I am still stuck on this. I Have <xsl:output method="text"/> and it >>seems to want to output XML. Anyone seen this before? I swear the >>first time I ran it it output text. Now it produces this error. This >>must be a bug >> >>The XML page cannot be displayed >>Cannot view XML input using style sheet. Please correct the error and >>then click the Refresh button, or try again later. >> >> >>---------------------------------------------------------------------- >>- >>- >>-------- >> >>Invalid at the top level of the document. Error processing resource >>'http://24.75.221.234:8080/taxcode/xforms-server-submit... >> >><?xml version="1.0" encoding="utf-8"?>1017**** >>--------------------------------------^ >> >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: Friday, March 10, 2006 4:33 PM >>To: [hidden email] >>Subject: RE: [ops-users] Almost Resolved: Transforming instance using >>XSLT >> >> >>Well almost, the first time I did it it worked. But then I hit it >>again a couple minutes later and now it does XML even though >>xsl:output > >>method = "text". AHHHHHHHH. >> >>I also noticed that it was not converting   to a non breaking >>space in xalan the way it was in MSXML. >> >> >> >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: Friday, March 10, 2006 4:21 PM >>To: [hidden email] >>Subject: RE: [ops-users] Resolved: Transforming instance using XSLT >> >> >><xsl:stylesheet version="1.0" >>xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >>xmlns:xforms="http://www.w3.org/2002/xforms"> >> <xsl:output method="text"/> >> <xsl:template match="/"> >> <xsl:for-each >> [<xsl:value-of >>select="substring-after(name(.),'SEQ') "/>] >> <xsl:value-of select="."/> >> </xsl:for-each> >> </xsl:template> >></xsl:stylesheet> >> >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: Friday, March 10, 2006 4:18 PM >>To: [hidden email] >>Subject: RE: [ops-users] Transforming instance using XSLT >> >> >>Obviously that wont work because match="<pattern" ok. So I tried: >> >><xsl:stylesheet version="1.0" >>xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >>xmlns:xforms="http://www.w3.org/2002/xforms"> >> <xsl:output method="text"/> >> <xsl:template match="/"> >> <xsl:for-each select="doc('input:instance')/f1040ez/*"> >> [<xsl:value-of >>select="substring-after(name(.),'SEQ') "/>] >> <xsl:value-of select="."/> >> </xsl:for-each> >> </xsl:template> >></xsl:stylesheet> >> >>And it doesn't bomb but doesn't output anything. Getting closer. >> >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: Friday, March 10, 2006 10:00 AM >>To: [hidden email] >>Subject: RE: [ops-users] Transforming instance using XSLT >> >> >>Hi Alex >> >>Where do I put the doc('input:instance') >>In the stylesheet >> >>I know this doesn't work: >> >><xsl:stylesheet version="1.0" >>xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >>xmlns:xforms="http://www.w3.org/2002/xforms"> >> <xsl:output method="text"/> >> <xsl:template match="doc('input:instance')//form"> >> <xsl:for-each select="*/*[. != '']"> >> [<xsl:value-of select="substring-after(name(.),'SEQ') "/>] >> <xsl:value-of select="."/> >> </xsl:for-each> >> </xsl:template> >></xsl:stylesheet> >> >>Richard >> >>-----Original Message----- >>From: [hidden email] [mailto:[hidden email]] On Behalf Of >>Alessandro Vernet >>Sent: Thursday, March 09, 2006 8:07 PM >>To: [hidden email] >>Subject: Re: [ops-users] Transforming instance using XSLT >> >> >>Hi Richard, >> >>1) In XForms, you can execute a <xforms:submission replace="all" >>action="someURI"/>. This will make a request at someURI. >>2) Then in the page-flow.xml, you have a <page path-info="someURI" >>view="your-file.xsl">. This will run your-file.xsl. >>3) In your-file.xsl, use doc('input:instance') to have access to the >>submitted instance and generate the page you want based on the >>submitted instance. >> >>So actually, you don't even need XPL in this case. >> >>Alex >> >>On 3/6/06, Richard Braman <[hidden email]> wrote: >>> >>> Now that I am back into XPL (now that most of my Xforms controls are >>> done for 1040EZ, except a few bugs) My learning cure is back to >>> steep. >> >>> I want to call xpl pipeline to convert my xforms instance into a >>> text >>file >>> using the following xslt on my instance and return the rsults as in >>> a > >>> window, or better yet prmot the user to save them on a trigger. >>> >>> I am not sure where to put my xslt. >>> >>> I am still also having problems serializing instance and using >>> upload > >>> controls. >>> >>> >>> <xsl:stylesheet version="1.0" >>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> >>> <xsl:output method="text"/> >>> <xsl:template match="//form"> >>> <xsl:for-each select="*/*[. != '']"> >>> [<xsl:value-of select="substring-after(name(.),'SEQ') >>> "/>] >>> <xsl:value-of select="."/> >>> </xsl:for-each> >>> </xsl:template> >>> </xsl:stylesheet> >>> </p:config> >>> >>> how would i go about doing this? >>> >>> My gues would be to enclose the >>> >>> >>> >>> Richard Braman >>> mailto:[hidden email] >>> 561.748.4002 (voice) >>> >>> http://www.taxcodesoftware.org >>> Free Open Source Tax Software >>> >>> >>> -- >>> You receive this message as a subscriber of the >>> [hidden email] mailing list. To unsubscribe: >>> mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> ObjectWeb mailing lists service home page: >>> http://www.objectweb.org/wws >>> >>> >>> >> >> >>-- >>Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ >> >> >> >> >> >> >> >> > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
I also fixed the missing ; in SEQ0004 & 0006. Same problem.
-----Original Message----- From: Richard Braman [mailto:[hidden email]] Sent: Monday, March 13, 2006 12:41 PM To: [hidden email] Subject: RE: [ops-users] Bug? Transforming instance using <XSL:output method='text'> returns XML Ryan, Thats not it. I do have the > escaped. I mistekenly copied the xml from IE instead of the XML editor. I turned off the mouseover, something I had turned on to help with the absolute positions. This is the instance. <form> <f1040ez> <ByteCount>1017</ByteCount> <StartofRecordSentinel>****</StartofRecordSentinel> <SEQ0000>RET&#xa0;&#xa0;&#xa0;</SEQ0000> <SEQ0001>1040Z&#xa0;</SEQ0001> <SEQ0002>PG01&#xa0;</SEQ0002> <SEQ0003/><!--Primary SSN--> <SEQ0004>&#xa0</SEQ0004> <SEQ0005>200512</SEQ0005> <SEQ0006>&#xa0</SEQ0006> <SEQ0007/> <SEQ0008/> <SEQ0010>400001001</SEQ0010> <SEQ0020/> <SEQ0030>400002001</SEQ0030> <SEQ0040/> <SEQ0050/> <SEQ0055/> <SEQ0060>TEST I<WHY<GWEN R KNOTT </SEQ0060> <SEQ0062/> <SEQ0064/> <SEQ0066/> <SEQ0070/> <SEQ0080>12457 WILSHIRE-ON-THE-HAMPTONS BLVD</SEQ0080> <SEQ0083>WYNOT</SEQ0083> <SEQ0087>NE</SEQ0087> <SEQ0095>68792</SEQ0095> <SEQ0097/> <SEQ0098/> <SEQ0100/> <SEQ0110></SEQ0110> <SEQ0115/> <SEQ0120/> <SEQ0125/> <SEQ0135/> <SEQ0357/> <SEQ0358/> <SEQ0362/> <SEQ0364/> <SEQ0366/> <SEQ0368/> <SEQ0372/> <SEQ0373/> <SEQ0375>0</SEQ0375> <SEQ0378>0</SEQ0378> <SEQ0379/> <SEQ0380>63</SEQ0380> <SEQ0382/> <SEQ0385/> <SEQ0545/> <SEQ0551/> <SEQ0552>0</SEQ0552> <SEQ0750/> <SEQ0770></SEQ0770> <SEQ0775/> <SEQ0815/> <SEQ0820/> <SEQ1155/> <SEQ1160/> <SEQ1178/> <SEQ1180/> <SEQ1183/> <SEQ1185/> <SEQ1195/> <SEQ1197/> <SEQ1250/> <SEQ1256/> <SEQ1262/> <SEQ1263/> <SEQ1270/> <SEQ1272>123456780</SEQ1272> <SEQ1274>X</SEQ1274> <SEQ1276/> <SEQ1278>02135763</SEQ1278> <SEQ1290/> <SEQ1303/> <SEQ1305/> <SEQ1307>JOHN DOE</SEQ1307> <SEQ1309>8885551111</SEQ1309> <SEQ1313/> <SEQ1315/> <SEQ1321/> <SEQ1323>MILITARY</SEQ1323> <SEQ1324/> <SEQ1325/> <SEQ1326/> <SEQ1327>HOUSEWIFE</SEQ1327> <SEQ1328>8885551111</SEQ1328> <SEQ1338/> <SEQ1340/> <SEQ1350/> <SEQ1360>123456789</SEQ1360> <SEQ1370>TCSF</SEQ1370> <SEQ1380>123456789</SEQ1380> <SEQ1390>JUPITER</SEQ1390> <SEQ1400>FL</SEQ1400> <SEQ1410>33469</SEQ1410> <SEQ1420>5617484002</SEQ1420> <SEQ1465/> <SEQ1470/> <RecordTerminusCharacter>#</RecordTerminusCharacter> </f1040ez> </form> -----Original Message----- From: Ryan Puddephatt [mailto:[hidden email]] Sent: Monday, March 13, 2006 12:33 PM To: [hidden email] Subject: RE: [ops-users] Bug? Transforming instance using <XSL:output method='text'> returns XML Richard, A few things, I loaded up the page in firefox and got loads of errors (have you got a mouse handler on if so its failing) It seems the problems are with your data! I ran this in stylus studio and it had problems with the escaped   in SEQ0004 and SEQ0006 as they didn't have ; after them and <SEQ0060>TEST I<WHY<GWEN R KNOTT</SEQ0060> Isn't allowed because it contains < they must be escaped to < It ran fine and gave me the output in text hope this helps [] 1017 [] **** [0000] RET [0001] 1040Z [0002] PG01 [0003] [0004] [0005] 200512 [0006] [0007] [0008] [0010] 400001001 [0020] [0030] 400002001 [0040] [0050] [0055] [0060] TEST I<WHY<GWEN R KNOTT [0062] [0064] [0066] [0070] [0080] 12457 WILSHIRE-ON-THE-HAMPTONS BLVD [0083] WYNOT [0087] NE [0095] 68792 [0097] [0098] [0100] [0110] [0115] [0120] [0125] [0135] [0357] [0358] [0362] [0364] [0366] [0368] [0372] [0373] [0375] 0 [0378] 0 [0379] [0380] 63 [0382] [0385] [0545] [0551] [0552] 0 [0750] [0770] [0775] [0815] [0820] [1155] [1160] [1178] [1180] [1183] [1185] [1195] [1197] [1250] [1256] [1262] [1263] [1270] [1272] 123456780 [1274] X [1276] [1278] 02135763 [1290] [1303] [1305] [1307] JOHN DOE [1309] 8885551111 [1313] [1315] [1321] [1323] MILITARY [1324] [1325] [1326] [1327] HOUSEWIFE [1328] 8885551111 [1338] [1340] [1350] [1360] 123456789 [1370] TCSF [1380] 123456789 [1390] JUPITER [1400] FL [1410] 33469 [1420] 5617484002 [1465] [1470] [] # Ryan Puddephatt Software Engineer TFX Group - IT UK 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 >-----Original Message----- >From: Richard Braman [mailto:[hidden email]] >Sent: 13 March 2006 16:31 >To: [hidden email] >Subject: RE: [ops-users] Bug? Transforming instance using <XSL:output >method='text'> returns XML > >Hi Ryan. Steps to reproduce http://24.75.221.234:8080/taxcode/1040ez >Click View tyour efile button at the very very bottom of the page. > ><xsl:stylesheet version="1.0" >xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >xmlns:xforms="http://www.w3.org/2002/xforms"> > <xsl:output method="text"/> > <xsl:template match="/"> > <xsl:for-each >select="doc('input:instance')/form/f1040ez/*"> > [<xsl:value-of >select="substring-after(name(.),'SEQ') "/>] > <xsl:value-of select="."/> > </xsl:for-each> > </xsl:template> ></xsl:stylesheet> > >XML instance > <form> > <f1040ez> > <ByteCount>1017</ByteCount> > <StartofRecordSentinel>****</StartofRecordSentinel> > <SEQ0000>RET   </SEQ0000> > <SEQ0001>1040Z </SEQ0001> > <SEQ0002>PG01 </SEQ0002> > <SEQ0003 /> > <!-- Primary SSN > --> > <SEQ0004> </SEQ0004> > <SEQ0005>200512</SEQ0005> > <SEQ0006> </SEQ0006> > <SEQ0007 /> > <SEQ0008 /> > <SEQ0010>400001001</SEQ0010> > <SEQ0020 /> > <SEQ0030>400002001</SEQ0030> > <SEQ0040 /> > <SEQ0050 /> > <SEQ0055 /> > <SEQ0060>TEST I<WHY<GWEN R KNOTT</SEQ0060> > <SEQ0062 /> > <SEQ0064 /> > <SEQ0066 /> > <SEQ0070 /> > <SEQ0080>12457 WILSHIRE-ON-THE-HAMPTONS BLVD</SEQ0080> > <SEQ0083>WYNOT</SEQ0083> > <SEQ0087>NE</SEQ0087> > <SEQ0095>68792</SEQ0095> > <SEQ0097 /> > <SEQ0098 /> > <SEQ0100 /> > <SEQ0110 /> > <SEQ0115 /> > <SEQ0120 /> > <SEQ0125 /> > <SEQ0135 /> > <SEQ0357 /> > <SEQ0358 /> > <SEQ0362 /> > <SEQ0364 /> > <SEQ0366 /> > <SEQ0368 /> > <SEQ0372 /> > <SEQ0373 /> > <SEQ0375>0</SEQ0375> > <SEQ0378>0</SEQ0378> > <SEQ0379 /> > <SEQ0380>63</SEQ0380> > <SEQ0382 /> > <SEQ0385 /> > <SEQ0545 /> > <SEQ0551 /> > <SEQ0552>0</SEQ0552> > <SEQ0750 /> > <SEQ0770 /> > <SEQ0775 /> > <SEQ0815 /> > <SEQ0820 /> > <SEQ1155 /> > <SEQ1160 /> > <SEQ1178 /> > <SEQ1180 /> > <SEQ1183 /> > <SEQ1185 /> > <SEQ1195 /> > <SEQ1197 /> > <SEQ1250 /> > <SEQ1256 /> > <SEQ1262 /> > <SEQ1263 /> > <SEQ1270 /> > <SEQ1272>123456780</SEQ1272> > <SEQ1274>X</SEQ1274> > <SEQ1276 /> > <SEQ1278>02135763</SEQ1278> > <SEQ1290 /> > <SEQ1303 /> > <SEQ1305 /> > <SEQ1307>JOHN DOE</SEQ1307> > <SEQ1309>8885551111</SEQ1309> > <SEQ1313 /> > <SEQ1315 /> > <SEQ1321 /> > <SEQ1323>MILITARY</SEQ1323> > <SEQ1324 /> > <SEQ1325 /> > <SEQ1326 /> > <SEQ1327>HOUSEWIFE</SEQ1327> > <SEQ1328>8885551111</SEQ1328> > <SEQ1338 /> > <SEQ1340 /> > <SEQ1350 /> > <SEQ1360>123456789</SEQ1360> > <SEQ1370>TCSF</SEQ1370> > <SEQ1380>123456789</SEQ1380> > <SEQ1390>JUPITER</SEQ1390> > <SEQ1400>FL</SEQ1400> > <SEQ1410>33469</SEQ1410> > <SEQ1420>5617484002</SEQ1420> > <SEQ1465 /> > <SEQ1470 /> > <RecordTerminusCharacter>#</RecordTerminusCharacter> > </f1040ez> > </form> > > > >-----Original Message----- >From: Ryan Puddephatt [mailto:[hidden email]] >Sent: Monday, March 13, 2006 11:32 AM >To: [hidden email] >Subject: RE: [ops-users] Bug? Transforming instance using <XSL:output >method='text'> returns XML > > >Richard, > Could you provide some XML and the XSLT? > >Ryan Puddephatt >Software Engineer >TFX Group - IT UK >1 Michaelson Square >Livingston >West Lothian >Scotand >EH54 7DP > >* [hidden email] >( 01506 407 110 >7 01506 407 108 > > >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: 13 March 2006 16:14 >>To: [hidden email] >>Subject: [ops-users] Bug? Transforming instance using <XSL:output >>method='text'> returns XML >> >>I am still stuck on this. I Have <xsl:output method="text"/> and it >>seems to want to output XML. Anyone seen this before? I swear the >>first time I ran it it output text. Now it produces this error. This >>must be a bug >> >>The XML page cannot be displayed >>Cannot view XML input using style sheet. Please correct the error and >>then click the Refresh button, or try again later. >> >> >>---------------------------------------------------------------------- >>- >>- >>-------- >> >>Invalid at the top level of the document. Error processing resource >>'http://24.75.221.234:8080/taxcode/xforms-server-submit... >> >><?xml version="1.0" encoding="utf-8"?>1017**** >>--------------------------------------^ >> >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: Friday, March 10, 2006 4:33 PM >>To: [hidden email] >>Subject: RE: [ops-users] Almost Resolved: Transforming instance using >>XSLT >> >> >>Well almost, the first time I did it it worked. But then I hit it >>again a couple minutes later and now it does XML even though >>xsl:output > >>method = "text". AHHHHHHHH. >> >>I also noticed that it was not converting   to a non breaking >>space in xalan the way it was in MSXML. >> >> >> >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: Friday, March 10, 2006 4:21 PM >>To: [hidden email] >>Subject: RE: [ops-users] Resolved: Transforming instance using XSLT >> >> >><xsl:stylesheet version="1.0" >>xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >>xmlns:xforms="http://www.w3.org/2002/xforms"> >> <xsl:output method="text"/> >> <xsl:template match="/"> >> <xsl:for-each >> [<xsl:value-of >>select="substring-after(name(.),'SEQ') "/>] >> <xsl:value-of select="."/> >> </xsl:for-each> >> </xsl:template> >></xsl:stylesheet> >> >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: Friday, March 10, 2006 4:18 PM >>To: [hidden email] >>Subject: RE: [ops-users] Transforming instance using XSLT >> >> >>Obviously that wont work because match="<pattern" ok. So I tried: >> >><xsl:stylesheet version="1.0" >>xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >>xmlns:xforms="http://www.w3.org/2002/xforms"> >> <xsl:output method="text"/> >> <xsl:template match="/"> >> <xsl:for-each select="doc('input:instance')/f1040ez/*"> >> [<xsl:value-of >>select="substring-after(name(.),'SEQ') "/>] >> <xsl:value-of select="."/> >> </xsl:for-each> >> </xsl:template> >></xsl:stylesheet> >> >>And it doesn't bomb but doesn't output anything. Getting closer. >> >>-----Original Message----- >>From: Richard Braman [mailto:[hidden email]] >>Sent: Friday, March 10, 2006 10:00 AM >>To: [hidden email] >>Subject: RE: [ops-users] Transforming instance using XSLT >> >> >>Hi Alex >> >>Where do I put the doc('input:instance') >>In the stylesheet >> >>I know this doesn't work: >> >><xsl:stylesheet version="1.0" >>xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >>xmlns:xforms="http://www.w3.org/2002/xforms"> >> <xsl:output method="text"/> >> <xsl:template match="doc('input:instance')//form"> >> <xsl:for-each select="*/*[. != '']"> >> [<xsl:value-of select="substring-after(name(.),'SEQ') "/>] >> <xsl:value-of select="."/> >> </xsl:for-each> >> </xsl:template> >></xsl:stylesheet> >> >>Richard >> >>-----Original Message----- >>From: [hidden email] [mailto:[hidden email]] On Behalf Of >>Alessandro Vernet >>Sent: Thursday, March 09, 2006 8:07 PM >>To: [hidden email] >>Subject: Re: [ops-users] Transforming instance using XSLT >> >> >>Hi Richard, >> >>1) In XForms, you can execute a <xforms:submission replace="all" >>action="someURI"/>. This will make a request at someURI. >>2) Then in the page-flow.xml, you have a <page path-info="someURI" >>view="your-file.xsl">. This will run your-file.xsl. >>3) In your-file.xsl, use doc('input:instance') to have access to the >>submitted instance and generate the page you want based on the >>submitted instance. >> >>So actually, you don't even need XPL in this case. >> >>Alex >> >>On 3/6/06, Richard Braman <[hidden email]> wrote: >>> >>> Now that I am back into XPL (now that most of my Xforms controls are >>> done for 1040EZ, except a few bugs) My learning cure is back to >>> steep. >> >>> I want to call xpl pipeline to convert my xforms instance into a >>> text >>file >>> using the following xslt on my instance and return the rsults as in >>> a > >>> window, or better yet prmot the user to save them on a trigger. >>> >>> I am not sure where to put my xslt. >>> >>> I am still also having problems serializing instance and using >>> upload > >>> controls. >>> >>> >>> <xsl:stylesheet version="1.0" >>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> >>> <xsl:output method="text"/> >>> <xsl:template match="//form"> >>> <xsl:for-each select="*/*[. != '']"> >>> [<xsl:value-of select="substring-after(name(.),'SEQ') >>> "/>] >>> <xsl:value-of select="."/> >>> </xsl:for-each> >>> </xsl:template> >>> </xsl:stylesheet> >>> </p:config> >>> >>> how would i go about doing this? >>> >>> My gues would be to enclose the >>> >>> >>> >>> Richard Braman >>> mailto:[hidden email] >>> 561.748.4002 (voice) >>> >>> http://www.taxcodesoftware.org >>> Free Open Source Tax Software >>> >>> >>> -- >>> You receive this message as a subscriber of the >>> [hidden email] mailing list. To unsubscribe: >>> mailto:[hidden email] >>> For general help: mailto:[hidden email]?subject=help >>> ObjectWeb mailing lists service home page: >>> http://www.objectweb.org/wws >>> >>> >>> >> >> >>-- >>Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ >> >> >> >> >> >> >> >> > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |