Altova Mailing List Archives


Re: [xsl] with or without namespace

From: ac <ac@---------.--->
To: xsl-list@-----.------------.---
Date: 11/16/2010 7:20:00 PM
Hi,

Thank you Martin.

I just finished the xslt 1 version for browsers and just forgot about 
this.  Thanks for waking me up.

Regards,
Andre


> ac wrote:
>
>> To process these elements irrespective of their namespace, I can use
>> expressions like
>> *[local-name(.) = "a"] and *[local-name(.) = "b"]
>> all through the stylesheet but, in the stylesheet, I would much rather
>> map everything to the same namespace (possibly to default- or
>> no-namespace) and either use a single prefix, or better still, no
>> prefix, all over the stylesheet, to refer to all or any of these 
>> elements.
>> /xx:a, /xx:b, or /a , /b, for example
>> What would be the best way to declare the stylesheet namespaces to
>> achieve this, if possible?
>
> With XSLT/XPath 2.0 you are allowed to use
>   /*:a, /*:b
> to select elements with local name 'a' respectively 'b' in any 
> namespace (including no namespace).
>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@l...>
--~--

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.