[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.