You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/10/09 11:54:25 UTC

DO NOT REPLY [Bug 23695] New: - Cannot use

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23695>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23695

Cannot use <xsl:element name="param">

           Summary: Cannot use <xsl:element name="param">
           Product: XalanJ2
           Version: 2.5
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: jason.morris@citigroup.com


I am trying to use Xalan to create an ant build.xml file. I need to 
create "param" elements (as child of the <xslt> task element). I use this xslt 
snippet:

  <xsl:template match="param">
    <xsl:element name="param">
      <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
      <xsl:attribute name="expression">'<xsl:value-of 
select="@expression"/>'</xsl:attribute>
    </xsl:element>
  </xsl:template>

The result is that a <param> tag is created, but no end tag, so the resulting 
XML is not valid. 

If I change to any name other than "param" (e.g. <xsl:element name="pram">, it 
works fine and the end tag is created.

So it seems to be specific to the name "param". I know this could be a clash 
with <xsl:param>, but I tried other valid xsl: tag names (if, otherwise etc) 
and it works fine. Have tried a few versions of Xalan with no success. Any 
ideas?