Subject: RE: Namespace problem
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 25 Sep 2009 09:31:41 +0100
|
> 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
|