[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XHTML html validation
Abel Braaksma wrote:
method="xml" does not output the doctype-public if you do not also supply a doctype-system Seems like I remembered wrongly, it isn't odd at all. This is what the specs say about it for XML and XHTML (only read for XSLT 2, but my guess is, for XML it is the same for both): http://www.w3.org/TR/xslt-xquery-serialization/#XML_DOCTYPE says: "The doctype-public parameter MUST be ignored unless the doctype-system parameter is specified." this behavior is equal for XHTML and XML (logically so: XHTML *is* XML, so they obey the same rules for most parts). I don't know what processor you are using, but it is clearly doing the wrong thing. About the first element the spec says: "The name following <!DOCTYPE MUST be the name of the first element, if any" which clears the clouds on that one. I can only talk for Saxon, which does the correct thing there. Your best bet is to check the mailing lists or buglists of the processor you are using, or try another processor. HTH, -- 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
|