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

Re: JDK 5 XSLTC handling of namespace prefixes

Subject: Re: JDK 5 XSLTC handling of namespace prefixes
From: drkm <darkman_spam@xxxxxxxx>
Date: Tue, 20 Dec 2005 14:36:41 +0100 (CET)
unnecessary namespace in output
Julian Reschke wrote:

> drkm wrote:

> > Julian Reschke wrote:

> >> "This method will monitor all namespace declarations
> >> and make sure that no unnecessary declarations are
> >> output"

> >> Seems the current implementation fails to do that...

> >   If I remember your problem, you want that a namespace
> > you're using become the default namespace in the output.
> > Where is an "unnecessary namespace declaration" ?

> It's unnecessary if there isn't anything in source XML or
> XSLT that suggests that a prefix is needed, but the engine
> insists of adding useless prefixes such as "ns00" (so, I
> should have said unnecessary namespace prefixes).

  But the paper you cited doesn't.  It speak about
"namespace declarations".  And I guess by "unnecessary
namespace declarations" it means something like the
following, where the namespace is not used in its whole
scope:

    <elem xmlns:ns="..."/>

  BTW, "unnecessary" is in the sense of strict XML Namespace
REC, IMHO, and can't play with things like:

    <xs:element type="ns:type" xmlns:ns="..."/>

  Is the namespace (with prefix "ns") used in this last
example?

--drkm



















	

	
		
___________________________________________________________________________ 
Nouveau : tiliphonez moins cher avec Yahoo! Messenger ! Dicouvez les tarifs exceptionnels pour appeler la France et l'international.
Tilichargez sur http://fr.messenger.yahoo.com

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.