Re: [xsl] JDK 5 XSLTC handling of namespace prefixes

Subject: Re: [xsl] JDK 5 XSLTC handling of namespace prefixes
From: drkm <darkman_spam@xxxxxxxx>
Date: Tue, 20 Dec 2005 14:36:41 +0100 (CET)
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

    <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



Nouveau : tiliphonez moins cher avec Yahoo! Messenger ! Dicouvez les tarifs exceptionnels pour appeler la France et l'international.
Tilichargez sur

Current Thread