This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: with-param and context
- To: xsl-list at mulberrytech dot com
- Subject: Re: with-param and context
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: 28 Nov 2000 12:17:42 -0500
- References: <87elzwuiuu.fsf@nwalsh.com>
- Reply-To: xsl-list at mulberrytech dot com
/ Norman Walsh <ndw@nwalsh.com> was heard to say:
| If you apply the following stylesheet to a document that consists
| simply of "<doc/>", you'll get:
|
| text-only=0
| text-only=1
How embarrassing. This is another aspect of the question I asked
before which Michael Kay summarized perfectly:
Because your <xsl:apply-templates/> is not invoking the relevant
template rule directly. The current node is the root, so it invokes
the built-in template rule for the root. This invokes your specific
rule, which applies to all element nodes. The built in rule passes the
mode through unchanged, but not the parameters.
D'oh! Nevermind.
Be seeing you,
norm
--
Norman.Walsh@East.Sun.COM | First time surrealists are often confused
XML Technology Center | by the similarities between fish and
Sun Microsystems, Inc. | telephones.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list