Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Include Elements from other namespace in own XML [Thread Next] Re: Include Elements from other namespace in own XMLTo: NULL Date: 7/6/2007 6:47:00 PM Benjamin Kalytta wrote: > However the application (browser) don't know what to do > with <html:a> for example. If you're going to use outdated applications... I'd suggest that rather than prefixes, you try using the default-namespace convention. That is, instead of <html:a>, use <a xmlns="http://www.w3.org/1999/xhtml/">. If the application is really namespace-unaware, that should look like an HTML element to it. Note that since namespace declarations are inherited, you won't necessarily have to re-bind xmlns on every element. A smart serializer should do the Right Things in that regard. However, my position is that outdated applications should be discarded in favor of ones that support new standards -- so I'd recommend that you solve this instead by making the whole document either HTML or XHTML rather than mixing the two, and then use a browser (or other tool) that understands the language you're actually working in. -- Joe Kesselman / Beware the fury of a patient man. -- John Dryden | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
