- From: Vix <vixcc@yahoo.com>
- Date: Fri, 25 Jan 2002 19:13:19 -0800 (PST)
- To: Masayasu Ishikawa <mimasa@w3.org>, frank.ellermann@t-online.de
- Cc: www-validator@w3.org
--- Masayasu Ishikawa <mimasa@w3.org> wrote: > Frank Ellermann <frank.ellermann@t-online.de> wrote: > > > Hi, in http://www.w3.org/TR/REC-xml-names/ I found a nice way > > to change the relevant XML namespace on the fly in a document. > > > > I tried this with attribute target= of <base> resp. align= of > > <img>, i.e. I used a validated XHTML 1.0 transitional document, > > modified it to be strict, and added xmlns="...transitional" to > > <base> and <img> (before target= resp. align=). > > Note that XHTML 1.0 Strict and Transitional share the same > namespace "http://www.w3.org/1999/xhtml". Declaring a namespace > doesn't help for your purpose. > > > The validator recognized the additional namespace (shown in the > > header of the validator output), but marked these attributes as > > erroneous. In my second attempt I moved xmlns="..." up to the > > <head> resp. <address>, but the validator still didn't like the > > xmlns=, base=, and align= attributes. > > DTD-based validation and namespaces are not really compatible. > If you really want to perform DTD-based validation, whatever > namespaces you want to add, you have to declare necessary > elements and attributes appropriately in the internal or > external DTD subset, including the xmlns attribute. > > If your REALLY have to do so, you might want to look at > "Modularization of XHTML", at: > > http://www.w3.org/TR/xhtml-modularization/ Do you know of any quick introduction to XHTML modularization?! > Otherwise, you'd better consider schema-based validation or > live with "well-formed but not valid" for now. > > Regards, > -- > Masayasu Ishikawa / mimasa@w3.org > W3C - World Wide Web Consortium ===== _,.«~=`^`=~».,_,.«~=`^`=~».,_,.«~=`^`=~»., ------> tAke a bReak! gEt eNtertained! ------> http://www.sallini.com/ ^`=~».,_,.«~=`^`=~».,_,.«~=`^ -> http://netdesignplus.net/ -> It works... It Pays... _,.«~=`^`=~».,_,.«~= __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com
Received on Friday, 25 January 2002 22:13:19 UTC