I am using XSLT for what it is intended for i.e. mapping form 1 xml form to another.
Due to M$ lack of support for 2.0 and all the lovely functionality that comes with (case-less comparisons anyone? I hope someone lost their job for leaving that out of 1.0) plus more I am looking to using AddExtensionObject to add some functions to add the support I require. I believe this to be significantly more secure than allowing scripts to be run.
the annoyance is the plastering of the urn over all my tags. for example.
<INVAC xmlns:myColor="urn:myColor">
<MEMBO>7131</MEMBO>
<FUNDNAME>Fund00b</FUNDNAME>
</INVAC>
when I follow a modified version of http://www.15seconds.com/issue/031112.htm
I want to use the extra functionality but not have the output…….
thanks in advance!
You have found the answer to your main question — the
exclude-result-prefixesattribute ofxsl:stylesheetshould be used to specify all namespace prefixes (a white-space-separated list) that we don’t wished to be copied on literal-result elements.Your other question is also easy to answer:
Use:
This evaluates to
true()exactly when the two strings$s1and$s2ara case-insensitive-equal.The variable
$vUppershould contain all uppercase letters of the alphabet and the variable$vLowershould contain all lowercaseletters of the alphabet.Here is a complete example:
when applied on this XML document:
this transformation produces a new XML document in which any element, whose name is equal case-insensitively to
"DeLetE":