Subject: RE: parse malformed XML element From: "Chris Bayes" <Chris@xxxxxxxxxxx> Date: Thu, 24 Aug 2000 22:27:06 +0100 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: parse malformed XML element, Eric van der Vlist | Thread | Problems executing Oracle XSQL v1.0, G. Ken Holman |
RE: Conditional selection of Templa, Matthew Bentley | Date | RE: Conditional selection of Templa, Chris Bayes |
Month |