Re: XSLT 2.0 (was 1.1): xsl:apply-transform

I've just revised the XSLT 1.1 requirements and found that my suggestion for
XSLT1.1 is quite out of scope.

I've also checked Appendix G of XSLT1.0, but I didn't find any reference to
a composing element like xsl:apply-transform, and for me it is one of the
most natural concepts.

When I think about transforming XML documents, it is quite natural for me to
think something like: I have this document that conforms to DTD1, and this
transformation from DTD2 to HTML, it is easy to transform DTD1 into DTD2, so
I will transform my document to HTML by converting it from DTD1 to DTD2
(with a new transformation) and then I re-use the transformation from DTD2
to HTML.
>From what I know, this is not possible in XSLT1.1 unless I use xsl:include
and modes, which for me is not a natural way of achieving it. The use of
modes would force me at least to add a mode attribute to all templates in
the imported or importing stylesheet, so that the 2 sets of templates are
separated.

If it is possible to use multiple input documents and it will be possible to
create multiple output documents, shouldn't it be also possible in the
future to compose multiple transformations...

BTW, one other common problem I have is to split a node-set into 2. One
containing all elements before a specific node and the other with the
remaining nodes. I usually solve it with recursive templates, but I'm
allways a bit affraid of stack limits.

Sorry if all I do is waste your time by asking for silly and obvious stuff,
but it's the best help I can give.
I've been using XSLT for a year or so and I love it. Thank YOU :-))
Best Regards,
Ricardo

Received on Monday, 12 February 2001 14:39:27 UTC