xsl-list
[Top] [All Lists]

Re: [xsl] Re: Output validation with XSLT 2.0

2008-05-06 01:42:24
Hi Andrew,

On 5/6/08, Andrew Welch <andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> wrote:
XSLT 2.0's use of XML Schema types is completely separate from having
the xs namespace in the output...

From the end user's point of view, I think having xs: generated in the
output tree, when it won't be used anywhere, is probably not a good
design.

As suggested by Ken, while the tree is being constructed, some parts
of it may be serialized without even the whole of the tree being
formed in memory. This theory makes me feel, the XSLT 2.0 spec is
correct in the current form (as regards to the point we are
discussing).

Also, as mentioned by Mike, that a user might want something like, <x
xsi:type=xs:date> in the output. In this case the default provided by
the processor (i.e., generating the xs: declaration) is helpful.

The spec has to balance, what the processor should do for the user
(for this discussion, generating xs: declaration for the user), and
what the user can do (like doing exclude-result-prefixes in the
stylesheet).

The WG already has had years of discussions finalizing this decision,
and potential implementers agree to this, so I think it should be
fine.


-- 
Regards,
Mukul Gandhi

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--