This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re:XSL for element containing mixed content.
- To: XSL List <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Re:XSL for element containing mixed content.
- From: Joerg Pietschmann <joerg dot pietschmann at zkb dot ch>
- Date: Fri, 07 Sep 2001 13:50:09 +0200
- Organization: ZKB
- Reply-To: xsl-list at lists dot mulberrytech dot com
"Yang" <sfyang@unisvr.net.tw> wrote
> Sandbeep wrote:
> >then I can write '<xsl:value-of select ".">', for
> >directory template. But this prints all the data which
> >is present in the child elements
>
> try <xsl:value-of select="node()"/>
This wont fix it. You mean probably
<xsl:value-of select="text()"/>
It might be advisable to qualify the node further:
<xsl:value-of select="text()[normalize-space()][1]"/>
HTH
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list