Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
XML
Xalan 2.7.0 output method="html" - empty HTML tags
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Xh, post: 2762520"] 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"> <xsl:param name="help"/> <xsl:param name="formId"/> <xsl:param 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 [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
XML
Xalan 2.7.0 output method="html" - empty HTML tags
Top