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 Fri, 20 Jul 2007 14:31:11 GMT
Thanks - but this is just a simple example to illustrate the point.
In real life, the logic is more complex.... :)
It seems that the real problem is with the Cocoon installation on
the server and/or the java version.  Sigh.

>>> Suzan Foster <> 2007/07/20 02:49 PM

Derek Hohls schreef:
> <xsl:template match="page">
>   <tr><td>found page</td></tr>
>   <xsl:apply-templates select="*[local-name()='rowset' and
> @name='program-view' and
> namespace-uri()='']"/>
> </xsl:template>
> <xsl:template match="sq2:rowset[@name='program-view']">
>   <tr><td>found rowset</td></tr>
> </xsl:template> 

The select in your apply-templates isn't necessarry. The matcher on the

template already defines what will be output. The following should be 


    <xsl:template match="page">
        <tr><td>found page</td></tr>

    <xsl:template match="sq2:rowset[@name='program-view']">
        <tr><td>found rowset</td></tr>


Suzan Foster.

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.

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

View raw message