xsl-list
[Top] [All Lists]

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

2008-05-06 02:04:55
2008/5/6 Mukul Gandhi <gandhi(_dot_)mukul(_at_)gmail(_dot_)com>:
 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.

ok...

 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).

...but that contradicts what you've said above - the reason namespaces
are generated in the output tree even though they aren't used is to
allow serialization to begin before the entire output tree is known.
It's the very reason why you get the same namespace appearing hundreds
of times throughout the result rather than just once at the root of
the tree.

 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.

Indeed, I'm not proposing any changes, it's no big deal - just
pointing out (or perhaps looking for confirmation) that the xml schema
namespace could easily have been excluded by default.

-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

--~------------------------------------------------------------------
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>
--~--