Altova Mailing List Archives


Xalan 2.7.0 output method="html" - empty HTML tags

From: "Xh" <lukasz.budnik@------------------.--->
To: NULL
Date: 3/18/2007 4:05:00 PM

Hi All,

I have problems with generating valid HTML output

there are few HTML elements that i don't what to output as <tagname/>
but as <tagname></tagname> but Xalan keeps generating them  as
<tagname/>

there are few really annoying situations where adding &#160; to some
HTML elements is necessary:

<textarea class=3D"textarea" name=3D"{concat($textarea/ancestor::form/@id,
@id)}">
&#160;
</textarea>

otherwise FF produces very, very strange code when displaying:
<textarea .... />

but when I add &#160; user sees this space in textarea field...

or in this situation:

    <xsl:template name=3D"generateHelp">
        <xsl:param name=3D"help"/>
        <xsl:param name=3D"formId"/>
        <xsl:param name=3D"fieldId"/>
        <span id=3D"{concat($formId, '_', $fieldId,'_msg')}" style=3D"font-
weight: bold; color: red;">
        </span>
        <label for=3D"{concat($formId, '_', $fieldId)}">
            <xsl:value-of select=3D"$help"/>
        </label>
    </xsl:template>

the <span> element is generated as <span {attributes...} />

when i use JavaScript innerHTML for span id FireFox swallows
everything as innerHTML including
the <label> element

any idea how to solve this?

or I should always use the &#160; space entity?

best regards
=C5=81ukasz

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.