- From: Dave Pawson <dave.pawson@gmail.com>
- Date: Fri, 22 Mar 2013 10:02:06 +0000
- To: XMLSchema-dev <xmlschema-dev@w3.org>
I'm extending a schema. vsn 1.0 using oXygen, xerces parser
main schema is in namespace ns1
I want to add an attribute group, all attributes in ns2
to give
<a:element att1='x' b:att2='y'/>
To keep it clean, I would like the attribute group to be defined in a
second file
and imported into the main schema.
the main schema has
<xsd:include schemaLocation="eppExtensions.xsd"/>
<xsd:include schemaLocation="eppNSExtension.xsd"/>
<xsd:element name="a">
...
<xsd:attribute name="Type" type="xsd:token" use="required"/>
<xsd:attributeGroup ref="extgp1"/>
<xsd:attributeGroup ref="extgp2"/>
</xsd:element>
att1 is defined in file1, works fine
I can't figure out the syntax to put the second attribute group extgp1
into a ns?
The second included file is
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:atom="http://www.w3.org/2005/Atom"
attributeFormDefault="unqualified" version="1.0"
id="eppExtensions">
<xsd:attributeGroup name="extgp1">
<xsd:attribute name="att2" type="xsd:string"/>
</xsd:attributeGroup>
</xsd:schema>
Any suggestions please? To read / learn or fix the syntax?
TiA
--
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
Received on Friday, 22 March 2013 10:02:33 UTC