Dazhi Jiao schrieb am 03.09.2009 um 15:01:19 (-0400):

> Document is not valid.
> Error (1408,36) : src-resolve: Cannot resolve the name 'xml:space' to
> a(n) 'attribute declaration' component.
> Error (1408,36) : s4s-elt-must-match.1: The content of
> 'att.xmlspace.attribute.xmlspace' must match (annotation?, ((attribute
> | attributeGroup)*, anyAttribute?)). A problem was found starting at:
> attribute.

> Here is where the error happens in the xsd:
> 
>   <xs:attributeGroup name="att.xmlspace.attribute.xmlspace">
>     <xs:attribute ref="xml:space"/>
>   </xs:attributeGroup>
> 
> Here is where xml:space is defined (in an imported xml.xsd)
> 
>   <xs:attribute name="space">
>     <xs:annotation>
>       <xs:documentation>signals an intention that white space should
>       be preserved by applications</xs:documentation>
>     </xs:annotation>
>     <xs:simpleType>
>       <xs:restriction base="xs:token">
>         <xs:enumeration value="default"/>
>         <xs:enumeration value="preserve"/>
>       </xs:restriction>
>     </xs:simpleType>
>   </xs:attribute>

Shouldn't knowledge about xml:space be built into Xerces?

http://www.w3.org/TR/REC-xml/#sec-white-space

Try leaving the whole xml:space thing out of your schema. Does that
work?

-- 
Michael Ludwig

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to