Subject: Re: [xsl] XSLT validation with external file using Key From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 08 Jul 2009 16:13:32 -0400 |
Using Saxon 9 Windows XSLT/XPATH version 2 -------------------------------------- Source File : student.htm XSLT : testKey.xslt XML : validated_data_test.xml (Note My validation files as over 2 000 possible values)
This XSLT goes and against an html file and use an XML file to validated data. This is workng nicely but it doesn't do everything I want.
It doesn't take care of (uppercase,White Space) so if one is uppercase(HTML file) and it's lower-case in the XML(validation file) it doesn't pick it up.
I've tried pluggin in normalize-space and lower-case with no success,
<xsl:key name="keyrefname" match="ref" use="lower-case(normalize-space(.))"/> ... test="empty(key('keyrefname',lower-case(normalize-space($keyref))))">
Your guidance would be appreciated.
-- Possible July/August XSLT/XQuery/XSL-FO training in Oakland/CA/USA Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSLT validation with external, Knight, Michel | Thread | [xsl] Balisage Attendees: Do a Post, Deborah Aleyne Lapey |
[xsl] XSLT validation with external, Knight, Michel | Date | RE: [xsl] doc-available() URIs not , Michael Kay |
Month |