cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject Re: Namespace: behaviour differences
Date Fri, 20 Jul 2007 14:31:11 GMT
Suzan
 
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.
 
Derek

>>> Suzan Foster <suzan.foster@nerocmediaware.nl> 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()='http://apache.org/cocoon/SQL/2.0']"/>
> </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 
sufficient:

<xsl:stylesheet
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:sq2="http://apache.org/cocoon/SQL/2.0">

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

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

</xsl:stylesheet>


Regards,
Suzan Foster.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
For additional commands, e-mail: users-help@cocoon.apache.org 



-- 
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
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
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
CallCentre@csir.co.za.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message