[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Understanding why <tag></tag> is the way it is (wa
Maybe I wasn't clear that the examples I mentioned were about XHTML, not
about HTML, because the OP was all about XHTML rendering with XSLT 1.0
David Carlisle wrote: instead of the more sensible <script />,You say sensible, but in html it's a syntax error.
but the first will not render well in IE, both will render well in FF and Opera, I don't know about Safari and Konqeror. I assume the correct document type is set (I believe the OP had one set correctly). (the opposite is also true: <br /> should not be written as <br></br> because, you guessed it right, IE cannot handle it well) Same here. XHTML 1.0 allows both <br />, <br/> <br></br> but discourages the second and third because of possible incorrect rendering by engines that were before used to HTML: http://www.w3.org/TR/xhtml1/#h-4.6 and http://www.w3.org/TR/xhtml1/#C_2 (informative) The opposite is also true, if the content is not defined as EMPTY in the DTD (i.e, like a <p> tag), omitting the end-tag is allowed by the spec, but discouraged by the compatibility guidelines: http://www.w3.org/TR/xhtml1/#C_3 (informative) this latter is far more a problem when naively creating XHTML with an XSLT 1.0 processor with output method "xml". There is a cdata-section-elements on xsl:output, but not a never-minimize-elements attribute or something similar. Cheers, -- Abel Braaksma
|
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
|