xsl-list
[Top] [All Lists]

Re: [xsl] Re: Identity transformation for XSLT 2.0

2007-12-22 22:57:08
"Jesper" == Jesper Tverskov <jesper(_at_)tverskov(_dot_)dk> writes:

    Jesper> I both cases the identity transformation is 100%. I would
    Jesper> call them photographic. But there must still be a lot of
    Jesper> issues?

Here are some to think about:

    Jesper> Cheers, Jesper Tverskov
    Jesper> www.xmlplease.com/identity-template

This one is trivial, but, it helps if you put http:// in front of of
your uri.
I say this, because I was clicking on it repeatedly, but not getting a
webpage opened. After a couple of minutes, I realized the problem, and
cut-and-pasted into my web browser.

From that tutorial, you say:

"Since saxon:parse() and saxon:serialize() should have been part of
the spec"

Why?
They are unnecessary.
Serialization can be achieved with
http://www.fgeorges.org/xslt/serial/ - an pure XSLT 2.0 solution.

Saxon:parse has always been unnecessary.
Parsing can be done with the fn:doc() function - just pass a data: URI
(RFC 2397).
If Saxon still doesn't support this 9-year-old standard, then you can
resort to writing a my:doc () xsl:function using use-when to test the
xsl:vendor system-property to identify saxon, and use saxon:parse in
that case, and use fn:doc() for other cases.

Then you will be able to add the word pure to the subject line.
-- 
Colin Adams
Preston Lancashire

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