Re: Default Attributes and XSD

Marko Hedler <[email protected]> Thu, 11 Mar 2021 17:19:54 +0100
Newsgroups gmane.text.xml.saxon.help
Message-ID <[email protected]>
Thanks, Wendell,
In this case we want to move from a DTD-based project, with a huge XSLT,
to a XSD-based workflow.
The first step is getting the existing stylesheet to run (only one
single Transformation is allowed)

My first thought was, to try different saxon configuration features and
options in combination.
--expandAttributeDefaults..., --xsltSchemaAware..., -val etc.
but with no succes.
> Hey Marko,
>
> First it's useful to keep in mind that XSDs are not DTDs - most
> particularly, DTDs have no notion of local declarations.
>
> This being the case, what you are asking is a tall order in the
> general case - for any (conformant) XSD.
>
> It might not be so bad, however, for a particular XSD, if it happens
> to follow coding conventions making it more like a DTD (and
> simplifying the problem of matching attributes to their definitions).
> The approach would probably be to reduce your XSD with a filter (XSLT)
> into what would constitute essentially a lookup table for your
> attribute defaults, then reference that from your main XSLT.
>
> Note this is not specifically a Saxon question, or answer.
>
> Good luck,
> Wendell
>
>
> On Thu, Mar 11, 2021 at 9:14 AM Marko Hedler <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Hello everyone,
>
>     using XSLT with SaxonEE 10.3, I want all default attribute values
>     from a schema-valid XML instance to be expanded, but the
>     XSLT-Transformation itself must not be schema-ware.
>
>     I would like to have the same behavior as transforming a DTD-valid
>     XML instance with Saxon.
>
>     Any suggestions? Thanks in advance
>
>     Marko
>
>     _______________________________________________
>     saxon-help mailing list archived at http://saxon.markmail.org/
>     <http://saxon.markmail.org/>
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/saxon-help
>     <https://lists.sourceforge.net/lists/listinfo/saxon-help>
>
>
>
> --
> ...Wendell Piez... ...wendell -at- nist -dot- gov...
> ...wendellpiez.com... ...pellucidliterature.org... ...pausepress.org...
> ...github.com/wendellpiez. <http://github.com/wendellpiez.>..
> ...gitlab.coko.foundation/wendell...
>
>
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/saxon-help


--
----------------------------------------------------------------
Dr. Marko Hedler
Flurstraße 11
91555 Feuchtwangen
0179 750 2735
[email protected]

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help