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: Wanted: All unique namespaces in a document


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

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