Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10018 Improve XSD Types support in schema definition
  3. NXP-10984

xs:import and xs:include should be available for XSD fragments that are not declared as Nuxeo Schemas

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.7.1
    • Component/s: Core

      Description

      When the SchemaManager loads the contribution, it will copy the XSD file to the target folder (nxserver/schemas).
      The XSD files will then be loaded from here.

      As a result, XSD files that are not referenced by the contribution won't be copied and then won't be available.

      This means that for xs:include and xs:import directives to work, the referenced XSD should have been previously declared as a Nuxeo schema ...

      
       <schema name="myincludefragment" src="schemas/myincludefragment.xsd" prefix="mcc"/>
      
       <schema name="myschema" src="schemas/myschema.xsd" prefix="rt" />
      

      The goal if this issue if to avoid having to declare fake schemas ...

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.