[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Leaf Element Character data
Try something like the following for your "leaf" elements (assuming you want to transform it into an html p element): <xsl:template match="leaf"> <p> <xsl:apply-templates select="node()"> <xsl:template match="text()"><xsl:value-of/></xsl:template> </xsl:apply-templates> </p> </xsl:template> Rick Geimer National Semiconductor rick.geimer@xxxxxxx Kurt Donath wrote: > Using IE5.0 and XSL, I'm processing a document. Everything works okay > until I get to the 'leaf' elements, that have character data as their > contents. This character data isn't coming out. If I specify a > template, with a match on these 'leaf' elements, then return > value-of=".", this works. I don't want to do this for every kind of > leaf element. I thought there was supposed to be a built in template > that barfed out straight character data? > > -- > Kurt Donath > 315.456.6276 > Staff Systems Engineer > Intranet: http://www.syr.lmco.com/~donath/ > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . > Lockheed Martin - Enterprise Information Systems > Systems Engineering / Webserv > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|