This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: No match or what...




<xsl:template match = "library">
		<xsl:value-of select="."/>

the string value of an element node is the character data of _all_ its
descendents, so library book chapter here. You want 
		<xsl:value-of select="text()"/>
which is the character data of this element, or perhaps
<xsl:value-of select="normalize-space(text()[1])"/>
which is the first block of text, before the first element,
with white space trimmed.

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]