Hi everybody,

I am trying to generate a HTML+JSP page using Xalan but I cannot go around
a TransformerConfigurationException: "xsl:element is not allowed in this
position in the stylesheet!". What I am trying to generate is a construct
in the form:

<input type="submit" name="myName" value="<myLib:getLocalizedResource
name="resName"/> />

This is a valid JSP construct which runs fine on Tomcat or WebLogic. How
can I generate it using the XSL transformation ? Does it have anything to
do with the version of Xalan2 that I am using ? Mine is rather old (Dec
2000).
The XSL FAQ says that XML does not allow nesting elements within
attributes. Is this statement still true if I choose the output to be
html (this is what I am currently using) ?


The XSL template that I am using is:

<xsl:template name="ButtonInfo">
  <input type="submit">
    <xsl:attribute name="value">
      <xsl:element name="getLocalizedResource">
        <xsl:attribute name="name">resName</xsl:attribute>
      </xsl:element>
    </xsl:attribute>
  </input>
</xsl:template>

Thanks,
Liviu

Reply via email to