[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] CSS and Namespaces
Where is the proper relationship between CSS1 and Namespaces defined/codified? Has it been? Suppose you have an xml file like this: ====== <?xml version="1.0"?> <?xml-stylesheet href="coll.css" type="text/css"?> <collection xmlns:nss="http://www.n-topus.com"> <nss:item type="stamp"> <nss:num>S-1873-001</nss:num> <nss:country>Italy</nss:country> <nss:year>1873</nss:year> </nss:item> </collection> ======= and you provide a stylesheet, coll.css, like so: ======= collection { display: block; } item { display: list-item; float: none; border: none; } num { display: block; font-weight: bold; color: blue; text-decoration: underline; cursor: pointer; } country { display: block; font-style: italic; } year { display: block; font-family: monospace; font-size: 8pt; } ======= The observed behavior is that IE5.0 ignores the stylesheet and just runs the text content of the file together, while Mozilla 6 recognizes it. Both ignore the stylesheet if the stylesheet selectors include the prefix, even though one might have expected that a CSS stylesheet will adopt the XML 1.0 view of QNames, not the Namespace view. Clarifications badly needed. *************************************************************************** This is xml-dev, the mailing list for XML developers. To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev List archives are available at http://xml.org/archives/xml-dev/ ***************************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|