Subject:WYSIWYG view to XSLT Source view Bug - xsl:element end tag position is changed Author:Eddie Koehn Date:30 Nov 2004 09:02 PM
I am attempting to place a xsl:if tag inside an xsl:element tag.
It works as long as I stay in the "XSLT source" view.
But each time I go to the "WYSIWYG" view and then return to the
"XSLT Source" view the xsl:element end tag is repositioned.
Attached is the XML source file.
Below is the BEFORE and AFTER XSLT file. Also included is the xml source.
Subject:WYSIWYG view to XSLT Source view Bug - xsl:element end tag position is changed Author:Ivan Pedruzzi Date:01 Dec 2004 01:50 AM
Hi Eddie
The problem resides in the HTML ugliness.
The "input" tag is defined in the HTML DTD with an emty body so
anything inside his body gets stripped away by the HTML parser (IE).
The attribute "checked" presence is enought to set the "ON" state
no matter what is the value so we can't use the attribute value
template ({}) to build it.
The following code is a bit verbose but should work and be
preserved by WYSIWYG.