xsl-list
[Top] [All Lists]

RE: [xsl] Namespace problem

2009-09-25 04:32:29

you should have been no outpout,mthis is a syntax error

<xsl:template match="@xmlns:xsi" />

xmlns:xsi is not an attribute so can't be accessed with @.

Just to be clear, the reason this is an error is that there is no in-scope
namespace binding for the prefix xmlns. This prefix is used in XML namespace
declarations, and there is a conventional URI to which it corresponds, but
in the XPath data model there is no namespace node corresponding to this
prefix/URI pair, and therefore the prefix cannot be used in QNames within
XPath expressions or match patterns.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 



--~------------------------------------------------------------------
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>