Subject: Re: with-param and context From: Norman Walsh <ndw@xxxxxxxxxx> Date: 28 Nov 2000 12:17:42 -0500 |
/ Norman Walsh <ndw@xxxxxxxxxx> 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@xxxxxxxxxxxx | 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
with-param and context, Norman Walsh | Thread | a key of attributes, Sebastian Rahtz |
a key of attributes, Sebastian Rahtz | Date | RE: looping, Wade, William (Bill) |
Month |