Hi,
I found my mistake. Sorry for the inconvenience.
My mistake was that I forgot to add:
@namespace ro
url(http://www.xmlmind.com/xmleditor/schema/university-calendar);
into my css. Therefore, when we need to use namespace prefix in our xml
document, the css need to define those namespace prefix as well. Now my css
look like:
header[ro|class="Head1"]{
font-size: 1.8em;
margin-top: .83ex;
margin-bottom: .83ex;
color:#22A000;
}...
good stuff.
Thanks anyway.
Jocelyn Raymond
-----Original Message-----
From: Raymond, Jocelyn
Sent: Wednesday, April 14, 2004 12:33 PM
To: 'xmleditor-support at xmlmind.com'
Subject: xml schema - namespaces - css
Importance: High
Hi,
I have been evaluating XXE for our office. We have made an xml application
called "University-Calendar" which is restricted by a schema. I have tried
to follow the documentation on how to configure xxe by adding a new
configuration in the xxe user preference directory (Win XP-> Documents and
Settings). I was able to use the xsdvalid application to validate my xml
document with no problem. However, my xml document contains elements with
attributes and, for unknown reason to me, the xsdvalid require that my
element attributes be "qualified" (even if I added
attributeFormDefault="unqualified" to the schema). Per say, this is not a
problem but when I bring it up in xxe, it is not "styled". Here is a short
snippet of my css:
header[class="Head1"]{
font-size: 1.8em;
margin-top: .83ex;
margin-bottom: .83ex;
color:#22A000;
}
which does not work
Then looking at the forum archive I founded that you can do the following:
header[ro\:class="Head1"]{
font-size: 1.8em;
margin-top: .83ex;
margin-bottom: .83ex;
color:#22A000;
}
where "ro" is my prefix for my namespace. This did not work either.
I looked at all your demos but only "bugreport" used a schema. However, it
does not have a single element with attributes and I just don't know how to
make this css work.
1. Do you know if it is possible to avoid namespace prefix on the
attributes?
2. Otherwise, how do you write the css that must support namespace prefix?
Thanks for your help.
Jocelyn Raymond
Note: your product is absolutely great. I love the way you made is
extensible (I read your documentation a couple times now).