XSL Transform Textarea Problem w/IE6?
-
I've seen this issue noted a few other places on the web, but so far no good solutions have been found. I have an XSL file I'm using to transform some XML. This XSL file has existed for a long time now and has always worked on version of IE <= 5.5. Some of our clients are now moving to an IE6 environment and I've found that the new version of the XML parser included with IE6 messes up when performing the transform. Specifically, when the transform attempts to output a textarea block, with code similar to this:
<xsl:attribute name="FIELD_TYPE">s</xsl:attribute> <xsl:attribute name="DATA_TYPE">T</xsl:attribute>
The closing textarea tag is never output to the HTML when using the XML parser included with IE6. In IE <= 5.5 however this works just fine. Has anybody else experienced similar problems, or have a suggestion for a solution? It would be appreciated! Thanks!
-
I've seen this issue noted a few other places on the web, but so far no good solutions have been found. I have an XSL file I'm using to transform some XML. This XSL file has existed for a long time now and has always worked on version of IE <= 5.5. Some of our clients are now moving to an IE6 environment and I've found that the new version of the XML parser included with IE6 messes up when performing the transform. Specifically, when the transform attempts to output a textarea block, with code similar to this:
<xsl:attribute name="FIELD_TYPE">s</xsl:attribute> <xsl:attribute name="DATA_TYPE">T</xsl:attribute>
The closing textarea tag is never output to the HTML when using the XML parser included with IE6. In IE <= 5.5 however this works just fine. Has anybody else experienced similar problems, or have a suggestion for a solution? It would be appreciated! Thanks!
I think you can fix this by putting at the end of the attributes. This should force it to insert a space into the text area, which in turn will split the shortcut into <textarea> </textarea>. The only problem is that the text box will have a space in it already for the user. There may be another way to do this, I've never run into the problem myself. </x-turndown>
-
I've seen this issue noted a few other places on the web, but so far no good solutions have been found. I have an XSL file I'm using to transform some XML. This XSL file has existed for a long time now and has always worked on version of IE <= 5.5. Some of our clients are now moving to an IE6 environment and I've found that the new version of the XML parser included with IE6 messes up when performing the transform. Specifically, when the transform attempts to output a textarea block, with code similar to this:
<xsl:attribute name="FIELD_TYPE">s</xsl:attribute> <xsl:attribute name="DATA_TYPE">T</xsl:attribute>
The closing textarea tag is never output to the HTML when using the XML parser included with IE6. In IE <= 5.5 however this works just fine. Has anybody else experienced similar problems, or have a suggestion for a solution? It would be appreciated! Thanks!
Shouldnt you be using
xsl:element
to do this? xsl:element Don't have time to test it but I assume something like this:<xsl:element name="textarea">
<xsl:attribute name="FIELD_TYPE">s</xsl:attribute>
<xsl:attribute name="DATA_TYPE">T</xsl:attribute>
</xsl:element>regards, Paul Watson Bluegrass Cape Town, South Africa