Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trying to remove quote before displaying a xml element

Status
Not open for further replies.

yahoo182

Programmer
Joined
Jul 5, 2005
Messages
70
Location
CA
Hi there,
There is an xml element that has quotes around it like so:
<book>"the old boy"</book>

Is it possibel to remove to quote before displaying the value of this elemnt with xsl ?

 
One way would be:
Code:
<xsl:value-of select="substring(book, 2, string-length(book)-2)"/>

Jon

"Asteroids do not concern me, Admiral. I want that ship, not excuses.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top