Summary: | <x:param> causes TransformerConfigurationException | ||
---|---|---|---|
Product: | Taglibs | Reporter: | Xiaotan(Helen) He <xiaotan.he> |
Component: | Standard Taglib | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 1.0B1 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All |
Description
Xiaotan(Helen) He
2002-04-08 19:05:10 UTC
Hi Helen. Sorry, I meant to get back to you personally on this over the weekend. I took a look at the XSLT file sent, and the problem is actually with the stylesheet. In XSLT, you need to declare a parameter before using it. That is, if your stylesheet began like this, the problem should go away: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:param name="cls" select="default" /> <xsl:template match="/"> <table border="1" class="{$cls}"> The <xsl:param> element is the important one; it declares a parameter and specifies a default binding (which is used if no <x:param> tag defines a value for the name). If you'd like more information, feel free to ask me, or read Section 11 of the XSLT spec (http://www.w3.org/TR/xslt#variables). Hope that helps, Shawn |