[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: parse malformed XML element
Or maybe you want <xsl:template match="p/text()"> <xsl:value-of select="." /> </xsl:template> <xsl:template match="br"> <xsl:text> </xsl:text> </xsl:template> or maybe not Ciao Chris XML/XSL Portal http://www.bayes.co.uk/xml >-----Original Message----- >From: owner-xsl-list@xxxxxxxxxxxxxxxx >[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Bertrand >Sent: 24 August 2000 16:30 >To: 'Xsl-List >Subject: parse malformed XML element > > >I have the following XML: > ><p> text1 <br/> > text2 <br/> > text3 <br/> > . > . > . ><p/> > >I want get only the text1 or text2 or text3 or ... > > >if i use <xsl:value-of select="p" /> i get text1+text2+text3+... >if i use <xsl:value-of select="p/text()" /> i get only text1. > >How can i do ? > > > 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
|