xsl-list
[Top] [All Lists]

Re: [xsl] XQuery Updates in XSLT

2008-10-29 19:32:32
Jesper Tverskov schrieb am 30.10.2008 um 00:09:33 (+0100):
By the way, this is all the XQuery Updates needed to delete the first
paragraph of an XHTML document:

delete node doc("test.html")/*:html/*:body/*:p[1]

Period.

<xsl:template match="/*:html/*:body/*:p[1]"/>

The problem with the wonderful modified identity template is that it
is more like an army even when one policeman would do.

XSLT has a problem if it is only good at total war.

Let me declare Total Template War on this Evil Document ...

Peace or war, sometimes I wonder why the identity template isn't the
default, built-in template. That would counter the proliferation of
templates (albeit only by one), and war would be less total.

Michael Ludwig

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