cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: new request namespace?
Date Tue, 23 Sep 2003 20:03:22 GMT
This stylesheet works for me:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 

<xsl:template match="/">
       <h1><xsl:value-of select="request:request/@target"/></h1>



Joerg Heinicke wrote:

> Hmm, strange. As I sad, the namespace prefix makes no difference. 
> Important is the binding of the namespace uri to an arbitrary namespace 
> prefix in the stylesheet. This must also be done if the original XML 
> uses the default namespace (as you mentioned it was done this way: the 
> XML had no prefix, but used the default namespace, the stylesheet had 
> bound the old namespace to the prefix 'request').
> To make it working with the new namespace simply change the uri of 
> xmlns:request to "" (you wrote you 
> have already done it. It must work then!
> If not, please post your stylesheet, I will have a look at it.
> Joerg
> Fleischer Roman wrote:
>> Hi Joerg thanks for your answer, but it still does not work.
>> I defined the namespaces
>> xmlns:request="" and
>> xmlns:h=" to my stylesheet.
>> But how can I get the value of the target attribute? With cocoon 2.1M1
>> "request:request/@target" works well - with cocoon 2.1 not. Why was the
>> prefix added to the request generator? How has the namespaces to be 
>> changed to let my stylesheets work as they
>> worked before?
>> Thanks,
>> Roman

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

View raw message