Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Empty element match [Thread Next] Re: Empty element matchTo: NULL Date: 7/2/2005 10:50:00 AM Richard Tobin wrote: > In article <da4gpq$54j$1@n...>, > Tjerk Wolterink <tjerk@w...> wrote: > > >>Ok thus namespaces are not allowed in html? > > > HTML, being SGML rather than XML, knows nothing about namespaces. > As far as HTML is concerned, xhtml:html is an element it's never > heard of, and <html xmlns="whatever-the-xhtml-namespace-is"> has > an invalid attribute (though it probably wouldn't mind that). > > But as far as outputting HTML from XSLT goes, only elements in no > namespace are output according to the HTML rules. So you have to > choose between outputting XHTML using the appropriate namespace, or > outputtting HTML with no namespace. > ok but my output method is set to html, why are the namespaces still there? > >>How does xsl handle empty elements, >>does it convert them to >><element/> >>or to >><element></element> > > > When outputting XML, it's up to the implementation, because they are > equivalent as XML. When outputting HTML, it will do the Right Thing, > according to what kind of HTML element it is (so it will output > always-empty elements as, for example, <br>). > > -- Richard ok thanks | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
