[Home] [By Thread] [By Date] [Recent Entries]
Greg Kushmerek wrote:
I'm having trouble with the call-template element.... Yet if I call Xalan (1.3 on Linux), I get this error:... What confuses me is how Xalan says it can't find the template when it's there.
You can have both a match and a name on a template, though this is a bit unconventional. In your case, adding a name="p" to the template with match='p' appears to do what you want, apart from: > <xsl:template match="p"> > <xsl:text /><xsl:apply-templates /><xsl:text/> > </xsl:template> The <xsl:text/> are no-ops the way they are applied. If you strip them, the template becomes: <xsl:template match="p"> <xsl:apply-templates /> </xsl:template> Calling this after adding a name is the same as using xsl:apply-templates in the ssame place where you call it. Furthermore, the template does exactly the same as the built-in template matching p, so you can omit it completely. Furthermore > Xalan (1.3 on Linux), Upgrading to a more recent version is strongly recommended. 2.3.1 is available. J.Pietschmann XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



