cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Re: Namespace: behaviour differences
Date Thu, 19 Jul 2007 06:12:26 GMT
or, I assume, use the syntax that Grzegorz provided, which does *not*
require the use of a prefix (but does, of course, require a
select="*[local-name()='rowset' and
namespace-uri()='' and
(Thanks to both Joerg and Grzegorz for help; I am still curious as
to the different behaviour of Cocoon on server vs PC... it does mean 
that development work is more, uh, interesting!)

>>> Joerg Heinicke <> 2007/07/19 06:33 AM >>>

On 18.07.2007 14:31, Grzegorz Kossakowski wrote:

> Even if you reference elements in stylesheet using prefix it's
> in that stylesheet _locally_. It means that you could use different 
> prefixes (pointing to the same namespace, of course) in processed XML

> and XSL stylesheet and it should work.

There is one issue though with elements in the default namespace in the

input document that massively irritates users not used to it. You MUST

bind that default namespace to a prefix.

So <xsl:template match="rowset"> won't match on <rowset 
xmlns=""> however you declare the 
default namespace in the stylesheet. You must bind 
"" to a prefix like sql and match on 


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

This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
CSIR E-mail Legal Notice 
CSIR Copyright, Terms and Conditions 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.

View raw message