xnsdoc - Bug-23

Description

When processing a local defined complex type that extends the containing named global complex type, a StackOverflowError occurs.

Affected Releases

xnsdoc 1.2.2 and all older releases.

Severity

Low.

Comments

The following schema reproduces the problem.

<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="testType">
    <xs:sequence>
      <xs:element name="foo">
        <xs:complexType>
          <xs:complexContent>
            <xs:extension base="testType">
              <xs:attribute name="bar" type="xs:string"/>
            </xs:extension>
          </xs:complexContent>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

Output:

xnsdoc starting
licensed to buldocs Ltd.
null
xnsdoc finished.
java.lang.StackOverflowError

Safe Online Shopping

Payment options

Billing currencies

  • 1

Site Conformance

Valid XHTML 1.0 Transitional

Valid CSS!