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:XSL for element containing mixed content.


"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


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