Lists Home |
Date Index |
Uche Ogbuji wrote:
> How about making an attribute on the stylesheet act as the switch?
> <xsl:transform ... xsl:version="2.0" xsl:psvi-aware="no"
> I strongly suggest the default should be no, and I think discussion on
> this list bolsters this.
I agree: I've just sent a similar proposal to public-qt-comments.
An alternative solution would be to make XSLT use *only* the schemata
specified by <xsl:import-schema />. If a stylesheet contains no such
element, schema-aware processing is not allowed.
That seems logical to me: "psvi-aware" processing, as defined by the
current spec, is essentially a two-phase transformation: one from xml to
psvi as specified by a schema, and one from psvi to xml, as specified by
the stylesheet. I think the entire transformation should be controlled
in one place only - in the stylesheet itself - rather than partly in the
source document(s) subject to the rather ambiguous "Schema Document
Location Strategy" defined in the schema spec.