Subject: [xsl] Handling non-Ascii values?? From: crazy_legs@xxxxxxxxxxx Date: 6 May 2001 22:10:03 -0700 |
I have a strange question. I am trying to search an XML file with non-ascii values. I am using an XSL file to do the searching. I only want to display ONE entry from the XML file, the entry containing the "Character" value Ј. However, I get ALL the entries not just the one I want. Any ideas on how to correct this problem? I have attached both the XSL and XML file. XSL file <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" xmlns:HTML="http://www.w3.org/Profiles/XHTML-transitional"> <xsl:template match="/"> <table> <xsl:for-each select="Database/Entry[Character='Ј']"> <tr> <td><xsl:value-of select="Character"/></td> <td><xsl:value-of select="Score"/></td> </tr> </xsl:for-each> </table> </xsl:template> </xsl:stylesheet> XML file <Database> <Entry> <Character>Ђ</Character> <Score>2</Score> </Entry> <Entry> <Character>Ѕ</Character> <Score>8</Score> </Entry> <Entry> <Character>Ј</Character> <Score>8</Score> </Entry> <Entry> <Character>Љ</Character> <Score>8</Score> </Entry> </Database> _______________________________________________________________ http://www.SINA.com - #1 Destination Site for Chinese Worldwide XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] send 'with-param' determi, Swen Thuemmler | Thread | RE: [xsl] Handling non-Ascii values, Tim Watts |
[xsl] send 'with-param' determined , Tim Watts | Date | RE: [xsl] Handling non-Ascii values, Tim Watts |
Month |