This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: substrings with entities or not.
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] substrings with entities or not.
- From: "Michael Beddow" <mbnospam at mbeddow dot net>
- Date: Mon, 5 Mar 2001 19:11:31 -0000
- References: <00BB1956AE40D411B5B60050DA27311F3C60DB@MAIL>
- Reply-To: xsl-list at lists dot mulberrytech dot com
By the time the XSLT processor sees your data, the parser has resolved
the entities.
Michael
------------------------------------------
Michael Beddow
http://www.mbeddow.net/
----- Original Message -----
From: "Adam Van Den Hoven" <Adam.Hoven@bluezone.net>
To: "XSL Mailing List (E-mail)" <xsl-list@lists.mulberrytech.com>
Sent: Monday, March 05, 2001 6:15 PM
Subject: [xsl] substrings with entities or not.
> So given the following XML
> <someXML>
> <something>Adam said, "This is a lot of work!"</something>
> <something>Adam also said, "This is a lot of work!"</something>
> </someXML>
>
> I want to get the strings <<Adam said, >> and <<Adam also said, >>
>
> can I use
>
> <xsl:value-of select="substring-before(something, '"')" />
>
> and exect everything to work out OK? My problem is that I can't
really
> guarantee that I'm going to have either the character or the entity
in my
> source.
>
>
> > Adam van den Hoven
> > Internet Application Developer
> > Blue Zone
> > tel. 604.685.4310
> > fax. 604.685.4391
> > Blue Zone makes you interactive.(tm) http://www.bluezone.net/
> >
>
> XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list