|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xmlns invalid? xt or XSLT problem?
> Producing an html output from xml, I get the > doctype and html elements as follows: > > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <html xmlns="http://www.w3.org/TR/REC-html40"> > > nsgmls tells me that according to the DTD specified, > there is no attribute xmlns. Here is my guess. xmlns, like all attributes that start with "xml", is an attribute that only has meaning in XML documents. An HTML 4.0 document is not necessarily an XML document, so nsgmls is not wrong if it only uses the HTML DTD for validation. The HTML 4.0 Transitional DTD does not allow xmlns as an attribute of <html>. > am I wrong in putting > > <xsl:stylesheet > xmlns:xsl="http://www.w3.org/XSL/Transform/1.0" > xmlns="http://www.w3.org/TR/REC-html40" > result-ns="" > indent-result="yes" > default-space="preserve"> > <xsl:output method="html" encoding="utf-8"/> > > at the top of my stylesheet. The result-ns attribute is no longer with us, and defaulting unprefixed elements to a non-null namespace URI is causing the extraneous xmlns to appear in the output <html>. It's still not completely clean, but James is erring on the side of caution by handling it this way. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








