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

RE: xmlns="" ??

Subject: RE: xmlns="" ??
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 30 Apr 2004 12:19:47 +0100
xlms
The xmlns="" undeclaration is being output because you have generated the
<html> element in the XHTML namespace and the <meta> element in no
namespace. Change your stylesheet code so that all elements are generated in
the XHTML namespace. If you use literal result elements to produce them, the
easiest way to achieve this is to declare the XHTML namespace at the top
level of your stylesheet.

Michael Kay 

> -----Original Message-----
> From: Arthur Maloney [mailto:ArthurM@xxxxxxxxxx] 
> Sent: 30 April 2004 09:32
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  xmlns="" ??
> Importance: Low
> 
> Hello xsl-list,
> 
>   I'm using MSXML SP2 to transform Why is xlms="" appearing 
> in meta & table
> 
> 
> 
> W3C XHTML 1.0 standard:- Root element must be "html" & 
> contain namespace as below:
> 
> My code:
>    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> 
>         <html xmlns="http://www.w3.org/1999/xhtml" 
> xml:lang="en" lang="en">
> 
>         ...
>         <meta ...></meta>
>         ...
>         <table>
>         ...
> 
> Output is
> <meta http-equiv="Content-Type" content="text/html; 
> charset=iso-8859-1" xmlns=""></meta>
> 
> <table xmlns="">
> 
> W3C can't validate as XHTML 1.0 Strict!
> because it does not recognize - xmlns="" -
> Not part of the standard
> 
> If I omit html namespace transformation works. But html 
> element does not
> conform.
> 
> Is it just MS non standards based output ?
> 
> Is there a work around so html element can
> conform to stand W3C standard
> 
> I have got it all wrong ?
> 
> -- 
> Best regards,
>  Arthur                          mailto:ArthurM@xxxxxxxxxx

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.