cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Huttar" <>
Subject RE: content aggregation + links to used files
Date Mon, 05 Jan 2004 20:54:03 GMT
> it's because as soon as you use a ns in your xml document,
> the xsl spec says

Actually it is the XML Namespaces spec that describes this
behavior (

> that an unnommed xml tag refers to the default ns.
> So basically:
> <root xmlns:ns="ns" xmlns:"ns2">
> <ns2:one>
> 	<two>
> </...>
> two has actually ns as ns bc it is the default ns for this
> subsection of this
> xml doc

I'm not sure what was intended here... there are a few typos;
but the above statement is not accurate.

If Nicolas meant

<root xmlns:ns="ns" xmlns="ns2">

then the element <two> is in the "ns2" namespace (the default namespace),
not in "ns". However this XML will not be accepted by a namespace-
aware application anyway, because the prefix "ns2" is not declared.

As for why removing namespaces fixed the problem, we have had these
sorts of problems before too, and had to remove namespaces to fix
them. We never could figure out why, other than assuming that Xalan
had a bug regarding namespaces.


> Le Lundi 05 Janvier 2004 17:06, Nele Vogel a écrit :
> > Hi Nicolas!
> >
> > I used your suggestion and removed all namespaces from the
> XML stream: The
> > XSL transform actually outputs the correct values. Can you
> please explain
> > to me, why this approach works?
> >
> > Thank you very much for your help!
> > Nele
> >

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message