This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
FW: cdata-section-elements and HTML output method.
- To: <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] FW: cdata-section-elements and HTML output method.
- From: "Sergey Dubinets" <sdub at microsoft dot com>
- Date: Fri, 23 Mar 2001 12:48:49 -0800
- Reply-To: xsl-list at lists dot mulberrytech dot com
- Thread-Index: AcCzLExfWLRmqsoURyCZkmEyDZd0ggArRpog
- Thread-Topic: cdata-section-elements and HTML output method.
The question is should XSLT processor output CDATA sections when output
method == html?
For elements that have non null namespace? (in data island fro example)
> Michael Key in the "XSLT Programmer's Reference" writes that
> cdata-section-elements is not applicable to HTML output. (page 260)
> I can't find in XSLT spec anything that can motivate this conclusion.
> Instead spec says in section 16.2 HTML Output Method:
> "The html output method should not output an element differently from
> the xml output method unless the expanded-name of the element has a
> null namespace URI; an element whose expanded-name has a non-null
> namespace URI should be output as XML. ..."
(Nothing in spec points to ignore cdata for content of HTML elements
(once with null ns) either, but this can be tricky because of case
insensitivity of HTML.)
> MSXML also ignores cdata-section-elements directive when generating
> HTML output.
> What should be the correct behavior for XSLT processor?
> Sergey
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list