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

Re: Unwanted Prefixes in Output

Subject: Re: Unwanted Prefixes in Output
From: Alan <alan-xsl-list@xxxxxxxxx>
Date: Thu, 22 Sep 2005 01:50:50 -0400
Re:  Unwanted Prefixes in Output
* Michael Kay <mike@xxxxxxxxxxxx> [2005-09-21 07:45]:
> > I believe he wants to process any atom document which could have any 
> > namespaces. But instead of having the namespace declared at 
> > the element 
> > level, he wants the namespaces declared on the root element.
> > 
> > I don't think it is possible without declaring the namespace 
> > in the XSL 
> > stylesheet root element, right?
> 
> You can achieve this with
> 
> <xsl:template match="/*">
>   <xsl:copy> (or <lre>)
>     <xsl:copy-of select="//namespace::*"/>
> 
> However, this will also copy namespaces that aren't used in the result
> document. If you want to eliminate unused namespaces AND promote retained
> namespaces to the outermost element, then a two-phase transformation is
> probably the cleanest way.

    As noted, it's an Atom feed, built by taking in any number of
    saved entires, so that search for namespaces would have to be
    across all the saved documents.

    Two stages is probably a way to go, since I'm pipelining anyway.

    Thank you Rob, Michael, and David.

--
Alan Gutierrez - alan@xxxxxxxxx
    - http://engrm.com/blogometer/index.html
    - http://engrm.com/blogometer/rss.2.0.xml

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.