xsl-list
[Top] [All Lists]

Re: [xsl] Namespaces on attributes

2012-02-29 10:59:57
On 29/02/2012 16:45, Wendell Piez wrote:
   xpath-default-namespace="http://www.w3.org/2001/XMLSchema-instance"/>

that has the same meaning as "default namespace declaration" xmlns="...." that is, it affects elements but not attributes.

Mostly that's what you want, if you have some documents using no namespace
<html>....<p id="x">...
and some xhtml
<html xmlns="http...">....<p id="x">...
you can convert a stylesheet to work with the second document just by adding xpath-default-namespace="http://...."; in both cases @id is in no namespace and selects the no-namespace id attribute.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________

--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>