Re: [xsl] Do you have XSLT code that converts a Schema Component Model (SCM) to an XML instance document?

Subject: Re: [xsl] Do you have XSLT code that converts a Schema Component Model (SCM) to an XML instance document?
From: "Jeffrey Greif jgreif@xxxxxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 12 Apr 2024 16:37:30 -0000
The Xerces2 Java package ( https://xerces.apache.org/xerces2-j/index.html )
supports the Schema Component Designators (
https://www.w3.org/TR/2010/CR-xmlschema-ref-20100119/ ) .  There is a DOM
implementation (org.apache.xerces.dom.PSVIDOMImplementationImpl) provided
that will, in conjunction with the XML parser, access the necessary schemas
and decorate the DOM Elements and Attributes parsed from any XML with the
schema information pertaining to that Element or Attribute.  There is also
support for creating schema grammars ( XSGrammar ) and converting a grammar
to org.apache.xerces.xs.XSModel, which contains the "schema component
designators" for that grammar.

On Fri, Apr 12, 2024 at 7:02b/AM Roger L Costello costello@xxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

>
>    - What happens to attributes?
>
>
>
> There are no attributes.
>
>
>
>    - What happens to choice particles?
>
>
>
> There are no choices.
>
>
>
>    - What happens to model groups?
>
>
>
> There are no groups.
>
>
>
>    - What happens to simple types?
>
>
>
> There are simpleTypes but all I am interested in is the elements b
> minOccurs, maxOccurs, and default. I donbt need to generate values for
the
> elements. I am just interested in the metadata for each element.
>
>
>
> /Roger
>
>
>
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/1067740> (by
> email <>)

Current Thread