cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <tcu...@dff.st>
Subject minimal taglib
Date Thu, 27 Jul 2000 16:46:46 GMT
I'm trying to create a taglib but when I
include the namespace I get NullPointerException!
Why?

processor.xsp.logicsheet.require.java  = file://D:\test\taglibs\test.xsl

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
  xmlns:test="http://www.dff.st/2000/XSP/test"
>

<xsl:template match="xsp:page">
  <xsp:page>
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates/>
  </xsp:page>
</xsl:template>

<xsl:template match="test:inspace">
  <xsp:logic>
     System.out.println("inspace");
  </xsp:logic>
</xsl:template>

<xsl:template match="global">
  <xsp:logic>
     System.out.println("global");
  </xsp:logic>
</xsl:template>

<xsl:template match="@*|*|text()|processing-instruction()">
  <xsl:copy>
    <xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
  </xsl:copy>
</xsl:template>

</xsl:stylesheet>
--
Torsten

Mime
View raw message