Subject: Re: [xsl] Use of xsl:apply-templates exception with an element From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 25 Sep 2009 17:44:41 -0400 |
As "If you are confident that thenamespace URI makes no difference, then you can test using the predicate [local-name()!=$name]", then, isn't
<xsl:copy-of select="*@[name() = ($name1, $name2, $name3, $name4)]"/>
with stable prefixes, better than what Ken was proposing which might look like this:
<xsl:copy-of select="*@[(local-name()=$name1 and namespace-uri()=$ns1) or (local-name()=$name2 and namespace-uri()=$ns2) or (local-name()=$name3 and namespace-uri()=$ns3) or (local-name()=$name4 and namespace-uri()=$ns4)]"/> ,
where I also have to declare variables $ns1, $ns2, $ns3, $ns4,
and where I also need to know, maintain, and debug the "hard-wired" fact that local-name $name1 is used with uri $ns1, and local-name $name2 is used with with uri $ns2, and local-name $name3 is used with uri $ns3, and local-name $name4 is used with uri $ns4, and ...
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] Use of xsl:apply-template, David Carlisle | Thread | Re: [xsl] Use of xsl:apply-template, ac |
Re: [xsl] Use of xsl:apply-template, David Carlisle | Date | [xsl] Help XSL Transformation of Da, Rajesh Jain |
Month |