[
Lists Home |
Date Index |
Thread Index
]
The fact that that the Schema for Schemas can not be used for
validating schemas can be checked here.
(A reply by Xerces Project Lead Gareth Reakes to my mailinglist post
on xerces-user-j on apache.org:
http://blog.parthenoncomputing.com/xerces/archives/2005/04/can_i_validate.html
However, his is not in-line with the original design goals from 1999:
http://www.w3.org/TR/NOTE-xml-schema-req
"The XML schema language must:...
define a useful XML schema for XML schemas;"
The schema for schemas may be found here:
http://www.w3.org/2001/XMLSchema.xsd
Maybe somebody can tell me what its use is if we can not use it in validation??
Gregor
2005/4/27, Razvan MIHAIU <mihaiu@mihaiu.name>:
> Eric van der Vlist wrote:
> On mar, 2005-04-26 at 13:22 -0700, Chris Griffin wrote:
>
>
> In section 3.14.2 of http://www.w3.org/TR/xmlschema-1/ it
> says "{any
> attributes with non-schema namespace . . . }" Does that mean I can
> add my own attributes? For example can I do this:
>
> <simpleType name="myName" xyz:myattribute="something">
> . . .
> </simpleType>
>
> Exactly!
>
> Eric
>
> I was not aware of this feature before. In fact, if the above is true,
> it is not possible to validate an XML Schema (which itself is an XML
> document) against a DTD because there is no way to specify in a DTD that an
> element can have any attributes.
> The obvious question is why would you need attributes outside the XML
> Schema specification ? If you extend an XML Schema in such a way then you
> defeat one of the main goals of XML, which is to be portable (only you tool
> will understand the custom attributes)
>
> --
> Regards,
> Razvan
>
> SCJP preparation material:
>
> www.mihaiu.name/2004/sun_java_scjp_310_035/index.html
> www.mihaiu.name/2004/sun_java_scjp_310_035_test1/index.html
> www.mihaiu.name/2004/sun_java_scjp_310_035_test2/index.html
> www.mihaiu.name/2004/sun_java_scjp_310_035_test3/index.html
> www.mihaiu.name/2004/sun_java_scjp_310_035_test4/index.html
>
>
|