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]

RE: [xsl] compare two unicode variables


Subject: RE: [xsl] compare two unicode variables
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 12 May 2005 08:41:28 +0100

> <!-- define the parameter -->
> <xsl:param name="Kentry" />
> <xsl:copy>
>  <xsl:for-each 
> select="/reportname/Entry[substring(ENTRY_FORM,1,$wordLength) =
> 
> Parameter "Kentry" could be "&#x00E1;"(unicode) and I do have 
> a equal ENTRY_FORM
> "&#x00E1;"in my xml file. 

I suspect that the value of $Kentry is a string of 8 characters (ampersand,
hash, x, 0, 0, E, 1, semicolon) and the value of ENTRY_FORM starts with the
single character whose Unicode code is xE1.

Numeric character references appearing in XML source files get converted to
the relevant Unicode character by an XML parser. This parameter string
hasn't been put through an XML parser.

Michael Kay
http://www.saxonica.com/


Current Thread
Keywords
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