• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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.
 
Sheriff
Posts: 28371
99
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.
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic