[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[xsd-dev] Parsing error with namespace issues
|
Hi:
I have the following parsing error, can someone please let me know how
I can resolve it? I have included the .xss and the corr .xsd in this email.
Thanks, Nishi
-------------------------------------------------------------------------------------------------------------------------
abc.xss: Parsing error, line 5, column 22: <laf> is not an understood
element.
This sometimes means the element's namespace (http://xmlns.oracle.com/uix/style)
is set incorrectly. This may also be an issue with the syntax of
its
parent element.
abc.xss
=======
<?xml version = '1.0'?>
<styleSheetDocument xmlns="http://xmlns.oracle.com/uix/style"
documentVersion="1089912999048">
<laf name="dc_minimal"/>
<styleSheet>
<style name="DarkBackground">
<property name="background-color">#669966</property>
</style>
<style name="DarkAccentBackground">
<property name="background-color">#CCCCCC</property>
</style>
<style name="TextBackground">
<property name="background-color">#FFFFFF</property>
</style>
<style name="TextForeground">
<property name="color">#000000</property>
</style>
<style name="DefaultFont">
<property name="font-family">Arial</property>
<property name="font-size">10pt</property>
</style>
<style name="LinkForeground">
<property name="color">#666633</property>
</style>
</styleSheet>
<styleSheet platforms="windows" browsers="ie"
versions="5">
<style name="DefaultFont">
<property name="font-size">10pt</property>
</style>
</styleSheet>
<styleSheet platforms="windows" browsers="ie"
versions="6">
<style name="DefaultFont">
<property name="font-size">10pt</property>
</style>
</styleSheet>
</styleSheetDocument>
abc.xsd
=======
<?xml version="1.0"?>
<!--W3C Schema generated by XMLSPY v2004 rel. 3 U (http://www.xmlspy.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xmlns.oracle.com/uix/style"
xmlns:style="http://xmlns.oracle.com/uix/style"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:cabotool="
http://bali.us.oracle.com/cabo/tool" elementFormDefault="qualified">
<xs:element name="laf">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="property">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="propertySimpleType">
<xs:attribute name="name" use="required">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="background-color"/>
<xs:enumeration value="color"/>
<xs:enumeration value="font-family"/>
<xs:enumeration value="font-size"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:simpleType name="propertySimpleType">
<xs:restriction base="xs:string">
<xs:enumeration value="#336699"/>
<xs:enumeration value="#663300"/>
<xs:enumeration value="#993366"/>
<xs:enumeration value="#cc99cc"/>
<xs:enumeration value="#ffffff"/>
<xs:enumeration value="10pt"/>
<xs:enumeration value="Arial"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="style">
<xs:complexType>
<xs:sequence>
<xs:element ref="property" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" use="required">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="DarkAccentBackground"/>
<xs:enumeration value="DarkBackground"/>
<xs:enumeration value="DefaultFont"/>
<xs:enumeration value="LinkForeground"/>
<xs:enumeration value="TextBackground"/>
<xs:enumeration value="TextForeground"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="styleSheet">
<xs:complexType>
<xs:sequence>
<xs:element ref="style" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="platforms" type="xs:string"/>
<xs:attribute name="browsers" type="xs:string"/>
<xs:attribute name="versions">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="5"/>
<xs:enumeration value="6"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="styleSheetDocument">
<xs:complexType>
<xs:sequence>
<xs:element ref="laf"/>
<xs:element ref="styleSheet" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="documentVersion" type="xs:long"
use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>