[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSL transformation removing closing tag for empty
Why is adding a comment in the xsl such a "tweak" in the xsl?
<div id="something"><xsl:comment>#something</xsl:comment></div> this will output: <div id="something"><!--#something--></div> the comment won't show up in your xhtml page, just in the source. regardless, you're going to need to do something about this in your xsl since it's your xsl parser that is outputting the empty div. so if you don't want to do this in the xsl, you'd probably need to install a different xsl parser (not sure if you're shared or dedicated hosting) which would be just a waste of time when you can just put something simple in your xsl file. if you're worried about making your file bloated, a simple <xsl:comment> won't send your file size over the top. dale ------------------------------
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|