Re: Default Attributes and XSD
Wendell Piez <[email protected]> Thu, 11 Mar 2021 10:10:11 -0500
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Message-ID | <CAAO_-xzVxJ7fYQKCUwQ=-7_SXumn2Bp7kJVO8M06ZZhxX_mB5Q@mail.gmail.com> |
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]> 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/ > [email protected] > https://lists.sourceforge.net/lists/listinfo/saxon-help -- ...Wendell Piez... ...wendell -at- nist -dot- gov... ...wendellpiez.com... ...pellucidliterature.org... ...pausepress.org... ...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