[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xmlns invalid? xt or XSLT problem?

Subject: RE: xmlns invalid? xt or XSLT problem?
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Fri, 1 Oct 1999 10:26:17 -0600
there is no attribute xmlns
> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.