This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: looping inside the child elements instead of using xsl:for-each