This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Wanted: All unique namespaces in a document
- To: xsl-list at mulberrytech dot com
- Subject: Re: Wanted: All unique namespaces in a document
- From: Steve Tinney <stinney at sas dot upenn dot edu>
- Date: Wed, 05 Apr 2000 01:26:15 -0400
- References: <NDBBKNAAEKOBBDPKKDDCMEPGCEAA.macherius@darmstadt.gmd.de>
- Reply-To: xsl-list at mulberrytech dot com
> <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