X
Xh
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 to some
HTML elements is necessary:
<textarea class="textarea" name="{concat($textarea/ancestor::form/@id,
@id)}">
</textarea>
otherwise FF produces very, very strange code when displaying:
<textarea .... />
but when I add user sees this space in textarea field...
or in this situation:
<xsl:template name="generateHelp">
<xslaram name="help"/>
<xslaram name="formId"/>
<xslaram name="fieldId"/>
<span id="{concat($formId, '_', $fieldId,'_msg')}" style="font-
weight: bold; color: red;">
</span>
<label for="{concat($formId, '_', $fieldId)}">
<xsl:value-of select="$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 space entity?
best regards
Åukasz
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 to some
HTML elements is necessary:
<textarea class="textarea" name="{concat($textarea/ancestor::form/@id,
@id)}">
</textarea>
otherwise FF produces very, very strange code when displaying:
<textarea .... />
but when I add user sees this space in textarea field...
or in this situation:
<xsl:template name="generateHelp">
<xslaram name="help"/>
<xslaram name="formId"/>
<xslaram name="fieldId"/>
<span id="{concat($formId, '_', $fieldId,'_msg')}" style="font-
weight: bold; color: red;">
</span>
<label for="{concat($formId, '_', $fieldId)}">
<xsl:value-of select="$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 space entity?
best regards
Åukasz