Re: Default Attributes and XSD

"Dr. Marko Hedler" <hedler-2h7L2rogWU5dW/[email protected]> Thu, 11 Mar 2021 17:06:27 +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.

I was wondering if one could tell the parser, to expand the default 
attributes and switch off schemaAware processing.
Marko
> 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


-- 

Hochschule der Medien
Prof. Dr.-Ing. Marko Hedler
Publishing - Cross-Media-Systeme
Nobelstrasse 10
70569 Stuttgart

Tel: 0711/8923-2141
Fax: 0711/8923-2180

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