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="Simon Brooke, post: 2763070"] Tag minimisation. One of the real experts will be along in a moment to tell you how to prevent this properly, but the following works: <div class="othernews"> <xsl:comment> prevent tag minimisation of DIV - Internet Explorer barfs </xsl:comment> <xsl:apply-templates select="feed"/> </div> If '<xsl:apply-templates select="feed"/>' in the above generates nothing (e.g., if there are no 'feed' elements) the XML would naturally contain an empty element which would be tag minimised on serialisation (printing to thee and me). So you put in the xsl:comment essentially to force the tag to have content, so that it can't be minimised. Don't think this solution will work for text areas, though - you may have to generate some default text. -- [email]simon@jasmine.org.uk[/email] (Simon Brooke) [URL]http://www.jasmine.org.uk/~simon/[/URL] ;; Skill without imagination is craftsmanship and gives us ;; many useful objects such as wickerwork picnic baskets. ;; Imagination without skill gives us modern art. ;; Tom Stoppard, Artist Descending A Staircase [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
XML
Xalan 2.7.0 output method="html" - empty HTML tags
Top