• 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

XSL Read element Problem

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I have some problem with xsl. please find bellow.

myinput.xml file
<page>praneeth (<italic>scjp</italic> hyd., SCJP,SCWCD)</page>

mytrans.xsl file
<xsl:element name="some_text">
<xsl:value-of select="$book/page"/>
</xsl:element>

myoutput.xml file
Praneeth scjp hyd., SCJP,SCWCD

My xsl file is not able to read <italic> in side <page> element.
How can i read exact text inside <page> element.

Any one could you Please tell me how to print <italic> in my output xml file.
Thanks,
praneeth.
 
Marshal
Posts: 28245
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might consider looking up what the xsl:value-of element does. Once you read its description you should understand why you see what you see. And if you want an exact copy of the contents of the <page> element, complete with markup and not just the text, you might consider looking up an element which makes a copy of something. It's not like reference material for XSLT is completely unavailable, you know. There are books. There are even sites on the Internet which tell you that. You could search them out.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic