[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: What to use instead of xsl:value-of

Subject: Re: What to use instead of xsl:value-of
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Tue, 06 May 2008 10:04:07 +0200
Re:  What to use instead of xsl:value-of
Pankaj Chaturvedi schrieb:
[...] the problem is that <xsl:value-of> does not give the correct
output for child elements/entities ([#x002d], missing <citationref>
element etc)  of <endnote>.

Just define a template to match the first text node below <endnote>.

<xsl:transform version="1.0"
  <xsl:template match="endnote/text()[ 1 ]">
    <xsl:value-of select="substring-before( . , ' ')"/>
    <xsl:value-of select="substring-after( . , ' ')"/>
  <xsl:template match="@*|node()">
      <xsl:apply-templates select="@*|node()"/>

Oddly, this doesn't work with xsltproc :-(

Michael Ludwig

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.