Re: Wanted: All unique namespaces in a document

Subject: Re: Wanted: All unique namespaces in a document
From: Steve Tinney <stinney@xxxxxxxxxxxxx>
Date: Wed, 05 Apr 2000 01:26:15 -0400
>                 <xsl:for-each select="
>                         //*
>                                 [not( namespace-uri(.) = namespace-uri(preceding::.))]
>                         ">
> 
>                         <xsl:value-of select="namespace-uri(.)"/>
>                 </xsl:for-each>
> 
> Fails in SAXON (illegal construct preceding::.). In Xerces it does not fail,
> and returns the namespace URI string for each element in the document.

If you correct namespace-uri(preceding::.) to
namespace-uri(preceding::*[1]) do you get something closer to what you
want?  An input file and a complete XSL script could enable a better
answer.

 Steve


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


Current Thread