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 2002/03/11 16:44:32 UTC

DO NOT REPLY [Bug 7028] New: - XSLTC doesn't insert closing tags in correct place (or insert self-closing tags) even when specified in the stylesheet

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=7028>.
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=7028

XSLTC doesn't insert closing tags in correct place (or insert self-closing tags) even when specified in the stylesheet

           Summary: XSLTC doesn't insert closing tags in correct place (or
                    insert self-closing tags) even when specified in the
                    stylesheet
           Product: XalanJ2
           Version: 2.3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: khalid.bari@csfb.com


<xsl:template match="Column">
    <xsl:variable name="val" select="text()"/>
	<table width="100%">
	    <tr>
                ....
            </tr>
	</table>
	<div id="{concat($val, 'replace')}"></div>
</xsl:template>

The above stylesheet fragment when under xsltc transformation fails to place 
the closing </div> tag immediately after the opening tag. Because I just used 
the tag as a placeholder which later gets replaced by javascript, I was able to 
bypass this problem by making the div tag hidden with some arbitrary text 
inside. However this bug needs to be fixed...I also tried <div id="{concat
($val, 'replace'))}"/> yet on the page it just comes out <div id="..."> with no 
self-closing.