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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]'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:[EMAIL PROTECTED]'program-view']"> <tr><td>found rowset</td></tr> </xsl:template> </xsl:stylesheet> Regards, Suzan Foster. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- 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 [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
