OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sdo message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Proposal SDO-54: Load XSD from Source (javax.xml.transform)


Hello All,

Below is a proposal for SDO-54:  Load XSD from Source (javax.xml.transform).

Rationale:
  • Expand the number of ways to define types from an XML schema.  Up to this point XSDHelper has been limited to loading schemas from Stream, Reader, and String forms, this API enables schemas to be loaded from other formats:  DOM (DOMSource), SAX (SAXSource), StAX (StAXSource), JAXB (JAXBSource), SDO (SDOSource), and even Stream/Reader/String (StreamSource).

New API on XSDHelper:
  •   /**
       * Define XML Schema as Types.
       * The Types are available through {@link TypeHelper#getType} methods.
       * @param xsdSource source to an XML Schema.
       * @param schemaLocation the URI of the location of the schema, used
       *   for processing relative imports and includes.  May be null if not used.
       * @return the defined Types. Not all of the XML Schema types cause an SDO
       *   type to be defined (for example in case of duplicates), the returned
       *   list only includes the newly defined types.
       * @throws IllegalArgumentException if the Types could not be defined.
       */
      List<Type> define(javax.xml.transform.Source xsdSource, String schemaLocation);

Core Spec:
  • No changes, this API is specific to the Java language.

Java Spec:
  • Section 2.17.2 XSDHelper Interface
    Add the new method to the interface
-Blaise





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]