schema = Nokogiri::XML::Schema(File.read(schema_file))
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified" jxb:version="1.0">
<xsd:include schemaLocation="some_other_schema.xsd"/>
...
<xsd:simpleType name="suidRefHousingTypeModel">
<xsd:annotation>
<xsd:appinfo>
<xmlcb>
<ptrRef type="HousingTypeModel"/>
</xmlcb>
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="suidRef"/>
</xsd:simpleType>
...
<xsd:complexType name="HousingNode">
<xsd:complexContent>
<xsd:extension base="NodeCore">
<xsd:sequence>
...
<xsd:element name="kind_suid" type="suidRefHousingTypeModel"/>
...
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
...
</xsd:schema>
Hi,
Can you please share all your code and documents so that we can reproduce what you're experiencing?
--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at https://groups.google.com/group/nokogiri-talk.
For more options, visit https://groups.google.com/d/optout.
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified" jxb:version="1.0">
<xsd:include schemaLocation="/user/me/tmp/b_types.xsd"/>
<xsd:simpleType name="aType">
<xsd:restriction base="xsd:long"/>
</xsd:simpleType>
</xsd:schema>
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified" jxb:version="1.0">
<xsd:include schemaLocation="/user/me/tmp/a_types.xsd"/>
<xsd:simpleType name="bType">
<xsd:restriction base="xsd:long"/>
</xsd:simpleType>
</xsd:schema>
schema = Nokogiri::XML::Schema(File.read("/user/me/tmp/a_types.xsd"))