This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: namespace axis


Nick Browne wrote:

> > Hi.
> >
> > I was trying an XSLT where I needed the namespace axis and
> found that both
> > MSXML (May release) and XT do not support it. Right now I'm
> doing my tests
> > with Saxon. How about the other XSLT engines?
>
> On Oracle v2.0.2.8, the stylesheet :
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>  <xsl:template match="/|*">
>   <xsl:for-each select="namespace::*">
>    <xsl:value-of select="."/>
>  </xsl:for-each>
> <xsl:apply-templates/>
> etc.
>
> Using as input :
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <rn:root xmlns:rn="rn-namespace">
> </rn:root>
>
> Gave : XSL-1035: Axis 'namespace' not found
>
> I guess that's a 'No' then ! (I presume my test was valid though the error
> suggests it didn't get that far.)
>
> Would the local-name(),name() or namespace() methods give the results you
> need, perhaps working up through the ancestor axis ?

Actually, name() should give the prefix, while the node value is the
namespace name. At least this is what Saxon does...


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]