Altova Mailing List Archives

Re: HTML + CSS to XML + CSS - what about namespaces?

From: Oliver Becker <obecker@----------.---------.-->
To: xml-dev@---.---
Date: 5/29/2000 12:31:00 AM
Hi Lisa,

> Before:
> <a href="">online</a>
> After:
> <html:a html:href=""
> xmlns:html="">online</html:a>
> My question is this:
> The initial html document may (and probably would) have had accompanying CSS
> style sheets, but now these style sheets refer to elements as they were
> before transformation (ie. without the explicit namespace). Is there any way
> to incorporate namespace into CSS, or do I need to recreate the style
> sheets?

Two thoughts:
1. The simplest way may be perhaps using a default namespace declaration:
   <a xmlns="" href=...."> ...
   I.e. you have to modify your XSL stylesheets accordingly.
   Now you have all your HTML elements within the HTML namespace and the
   CSS isn't affected.
2. Regarding your given example: I think this should be
   <html:a href=""
   i.e. the href attribute is *not* prefixed. I belongs to the a element
   of the HTML namespace and that's it.

Cheers, Oliver

/-------------------------------------------------------------------|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@i...             |
|  op|qo        WWW: |

This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.