Subject: Re: Leaf Element Character data From: Rick Geimer <rick.geimer@xxxxxxx> Date: Tue, 20 Apr 1999 15:27:17 -0700 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Leaf Element Character data, Kurt Donath | Thread | Re: Leaf Element Character data, Duane Nickull |
Leaf Element Character data, Kurt Donath | Date | Re: Leaf Element Character data, Duane Nickull |
Month |