This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: with-param and context


/ 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]