• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic