2006/6/6, Dimitre Novatchev <dnovatchev(_at_)gmail(_dot_)com>:
I was wondering if somebody could provide an example where using
mode="#all"
(http://www.w3.org/TR/xslt20/#modes)
is necessary and useful.
It seems to me that using this feature can be dangerous and harmful --
when should we recommend it?
I use it to skip nodes. Instead of
<xsl:template match="unwanted-node" mode="mode-1"/>
...
<xsl:template match="unwanted-node" mode="mode-n"/>
I just write
<xsl:template match="unwanted-node" mode="#all"/>
You could also use it to be sure to always process a certain node
(when the above XSLT templates have an actual body).
Just some suggestions...
--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
Regards,
Rene
--
GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6
(subkeys.pgp.net)
"It won't fit on the line."
-- me, 2001
--~------------------------------------------------------------------
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>
--~--