• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSL Read element Problem

 
praneeth ram
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • 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.
 
Paul Clapham
Sheriff
Posts: 21116
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic