xsl-list
[Top] [All Lists]

Re: [xsl] XSLT 2.1

2008-10-31 10:36:19
Thanks for pointing out your "true identity template".  I have
definitely experienced the problems you noted with most identity
transforms and have performed workarounds using unparsed-text() but
never built something as complete as your true identity template.
Thanks again for sharing. I am looking forward to studying it further.

Darcy
On Fri, Oct 31, 2008 at 10:02 AM, Jesper Tverskov 
<jesper(_at_)tverskov(_dot_)dk> wrote:
In another thread word is out that some work on XSLT 2.1 is going on.
I don't find anything about it at W3C perhaps I should look better.

How official is it that an XSLT 2.1 is in the making? Is it possible
to propose new features, etc.?

We know so far that something like <xsl:mode default-action="copy"/>
is being looked at making things like (I have changed "copy" to
"identity template" to make things more clear) possible:

<xsl:mode default-action="identity template"/>
<xsl:template match="foo"/>

I can't resist the temptation to propose something similar making use
of my "true" identity template for XSLT 2.0,
http://www.xmlplease.com/identity-template.xsl, explained in this
tutorial: http://www.xmlplease.com/identity-template.

The "true identity template" (an xslt stylesheet of several templates)
is 500 lines long! Nice if we could use it like this:

<xsl:mode default-action="true identity template"/>

Nice if we could use a modified "true" identity transformation on let
us say XHTML documents (important use case) without having to bother
about how to get original XML declarations and DOCTYPES recreated, how
to get rid of default attributes having been copied out from the DTDs,
etc.

Cheers,
Jesper Tverskov
http://www.xmlplease.com

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



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

<Prev in Thread] Current Thread [Next in Thread>