This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

FW: 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]