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

Re: css syntax - easy question

css namespaces
thanks!  i think i've worked out a good enough work-around for now, but 
this is interesting food for thought.

At 10:44 AM 7/13/2005, M. David Peterson wrote:
>Sorry.  I guess I forgot to mention that with CSS namespaces using *
>as a global reference is possible.  That is what triggered me to
>mention CSS namespaces, but you're right, I didn't mention that in my
>If you take a look at the following link
> > http://dean.edwards.name/IE7/compatibility/super.xml
>and view source you will find that it references the super.css, so this:
> > http://dean.edwards.name/IE7/compatibility/super.css
>will show you the css the first link is refering to.  In this example
>the first entry shows:
>my|* {
>         display: block;
>         color: black;
>         background: #ccc;
>         border: black 5px solid;
>         margin-bottom: 5px;
>         padding: 2px 2px 4px 4px;
>         font-family: verdana, arial, sans-serif;
>         font-size: 12px;
>which means that every element in the 'my' namespace will contain the
>values specified for each property which I believe is what you were
>hoping to obtain.
>As a side note you could also use:
>*|ul {
>       display:block;
>for example to also cover the html namespace, something that, when
>using CSS namespaces, you must preface each element in your source
>that would normally be the default and therefore unnecessary to
>preface each element with.  For example:
>instead of:
>   <li>list item one</li>
>   <li>list item two</li>
>would instead need to look like:
>list item one list item two doing so will allow the browser to recognize 
>that you want to apply the standard html css property values to these 
>elements unless otherwise specified within your stylesheet. To be honest 
>I'm not sure if there is a way to set things such that any element that is 
>not prefaced with a namespace defaults to 'html' (or some other namespace 
>you might specify e.g. @namespace 
>url(http://someuri.com/directory/structure/for/namespace); which simply 
>leaves out the name of the namespace which would then use the URI to map 
>against known namespace URI's, such as the specific HTML namespace value 
>you plan to use, to then automatically apply every element that is not 
>prefaced by a namespace selector to the known values for the namespace 
>specified) This would definitely be a good thing and is something I can't 
>imagine they would leave out of the spec.... but stranger things have 
>happened. If someone else has the answer to this maybe they wouldnt mind 
>filling the rest of us in. Otherwise, I will try and research this when I 
>have more time and respond back accordingly. Hope this helps! -- M. David 
>Peterson http://www.xsltblog.com 
>----------------------------------------------------------------- The 
>xml-dev list is sponsored by XML.org , an initiative of OASIS The list 
>archives are at http://lists.xml.org/archives/xml-dev/ To subscribe or 
>unsubscribe from this list use the subscription manager:


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.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.