Hi again, I have started to try and implement a simple logicsheet as
shown :

I followd the procedure of adding a logic sheet to the cocoon.xconf:

Cocoon.xconf 

   <builtin-logicsheet>
    <parameter name="prefix" value="player-info"/>
    <parameter name="uri"
               value=http://dahl.cs.nott.ac.uk/eclipse/player-info/1.0
     />
    <parameter name="href" 
               value="docs/logicsheets/player-info.xsl"/>
   </builtin-logicsheet>


Then created the logicsheet bellow:

player-info.xsl (logicsheet)

  <xsl:stylesheet version="1.0" 
                  xmlns:xsp="http://apache.org/xsp"; 
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
                  xmlns:player-
info=http://dahl.cs.nott.ac.uk/eclipse/player-info/1.0
    >
   <xsl:template match="xsp:page">
    <xsl:copy>
     <xsl:apply-templates select="@*"/>
     <xsl:apply-templates/>
    </xsl:copy>
   </xsl:template>
 
   <xsl:template match="player-info:all">
    <status>hello</status>
   </xsl:template>
 
   <xsl:template match="@*|node()" priority="-1">
    <xsl:copy>
     <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
   </xsl:template>
  </xsl:stylesheet>


then I call my new tag <player-info:all/> in a different xsp file with
the new namespace and nothing happens. The tag is simply ignored. There
are no visible errors in the logs. Can anyone help??


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to