xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] substrings with entities or not.


Subject: [xsl] substrings with entities or not.
From: Adam Van Den Hoven <Adam.Hoven@xxxxxxxxxxxx>
Date: Mon, 5 Mar 2001 10:15:02 -0800

So given the following XML
<someXML>
	<something>Adam said, &quot;This is a lot of work!"</something>
	<something>Adam also said, "This is a lot of work!&quot;</something>
</someXML>

I want to get the strings <<Adam said, >> and <<Adam also said, >>

can I use 

<xsl:value-of select="substring-before(something, '&quot;')" /> 

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



Current Thread
Keywords
xml
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor