[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Use of xsl:apply-templates exception with an eleme
Hi Michael,
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 ... Thanks, ac I understand local-name and namespace uris, but isn't strange that you can use <xsl:copy-of select="*[@self::attribution]"/> but not <variable name="name" select=" 'attribution' "/> ...
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|