wood burning stoves*
The moose likes XML and Related Technologies and the fly likes looping inside the child elements instead of using xsl:for-each Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "looping inside the child elements instead of using xsl:for-each" Watch "looping inside the child elements instead of using xsl:for-each" New topic
Author

looping inside the child elements instead of using xsl:for-each

vishme vish
Greenhorn

Joined: Jun 07, 2005
Posts: 7
Hi Everyone,

I am generating a pdf document from the xml. The xml is dynamically generated and i am using this xml tree to generate pdf documents using xslt and xpath.

Here is my xml document.


And here is my XSL file.

I am sending the code from the flow region..




I am able to generate the pdf document, but if i am not using <xsl:for-each tag and using the xpath expressions to get the values of children from the TOTALS element, the out put is coming in the same line ie, instead of appearing in the different columns, the values are coming in the same column.
here is my code where i am using xpath expressions instead of xsl:for-each

Can any one please explain me how to get the output in different columns instead of all the output printing in the same column, without using <xsl:for-each>

Sorry for the long post.
Thanks in Advance.
 
 
subject: looping inside the child elements instead of using xsl:for-each
 
Similar Threads
need to refresh a lot to see the generated pdf document
XSL help required to display PDF
XSL-FO to PDF using fop
problem with fop
Mulitple fo:page-sequence