cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sxk...@Cs.Nott.AC.UK
Subject RE: Logicsheet woes
Date Thu, 03 Jan 2002 09:06:40 GMT
Does anyone have a simple logicsheet skeleton code and instructions of
how to test it please? I keep can't seem to get round the problem below.
I think I have narrowed it down to a xsl problem?

Thanks for any help
Sharat Koya

-----Original Message-----
From: sxk99c@Cs.Nott.AC.UK [mailto:sxk99c@Cs.Nott.AC.UK] 
Sent: Wednesday, 02 January 2002 17:03
To: cocoon-users@xml.apache.org
Subject: Logicsheet woes

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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>



---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message