Mantis - Resin
Viewing Issue Advanced Details
275 minor always 06-20-05 00:00 11-30-05 14:43
sam  
 
urgent  
closed 3.0.13  
3.0.13 fixed  
none    
none 3.0.15  
0000275: xsl:template named template override
RSN-310
(rep by C Yttesen)

Having a "template.xsl" file defining the layout structure of my page
I'am using xsl:import to import this file in the "real" page and just
overriding/redefining appropriate templates:

template.xsl:
-------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> [^]
        <xsl:template name="title" />
        ...
        <xsl:template name="body" />
</xsl:stylesheet>

dummy.xsl:
----------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> [^]
        <xsl:import href="template.xsl" />
        <xsl:template name="title">my redefined title</xsl:template>
</xsl:stylesheet>

Having Resin transforming it complains about:

com.caucho.java.JavaCompileException: file:///[file [^] path removed]:
_xsl_macro_title(com.caucho.xsl.XslWriter,org.w3c.dom.Node,com.caucho.xp
ath.Env) is already defined in [file path removed]

  void _xsl_macro_title(XslWriter out, Node inputNode, Env env)


Looking at the generated Java file, the method signature for e.g.
'_xsl_macro_title' occurs twice.


Notes
(0000308)
sam   
06-20-05 00:00   
xsl/04bb
(0000309)
ferg   
06-20-05 00:00   
xsl/04aq