Subject: Re: [xsl] IGNORE CASE IN XSLT From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 01 Dec 2004 18:46:08 -0500 |
On the other hand, you could do something like:
<xsl:template match="*[translate(name(), 'ABC..', 'abc..') = 'italic']"> <!-- Yuck... --> </xsl:template>
This will work (I think... it seems like it should but I havent tested it to check) but the easier way to do this is to simply use the union method for matching multiple elements:
<xsl:template match="italic | Italic">
proccesing code...
</xsl:template>
Hope this helps!
<M:D/>
It will not help a lot if one cannot predict the use of case in element names. :-( Especially documents that originate from HTML of SGML have this problem, as HTML and SGML are case insensitive...
It even gets worse if you have to account for ancestors as wel... :-(
It would have been nice if the XSL standard would have provided a case sensitivity option. But on the other hand, it is actually more a job for XML parsers. Are there XML Parsers that have an option to ignore case of the input? (not using a declaration file)
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] SVG and Presentations at , Kienle, Steven C | Thread | Re: [xsl] IGNORE CASE IN XSLT, Geert Josten |
RE: [xsl] SVG and Presentations at , Wendell Piez | Date | [xsl] XSL-List Guidelines, Mulberry Technologie |
Month |