This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: no wonder i'm confused about the node() function


I think you can rely on Kay, particularly if you are using Saxon. You might do a search for "identity transform", there are numerous examples of the syntax needed to insure that you get everything you want to cross over from one side to the other.

I don't have links handy but I think you would be safe introducing the PI, comment, etc. options into your stylesheet in the same template as you've placed the @ and * selectors.

Suffice to say, it's helpful to know that, in addition to attributes and elements, there are other things that can be explicitly chosen or un-chosen via the proper syntax.

...edN

Robert P. J. Day wrote:
"XSLT", Doug Tidwell, p. 51

  "* The node() node test, which selects all nodes in the current
  context, regardless of type.  This includes elements, text, comments
  processing instuctions, attributes, and namespace nodes."

"XSLT Programmer's Reference", 2nd ed., Michael Kay, p. 432

  "Since root nodes, attribute nodes and namespace nodes are never
  children of another node ... they will never be matched by the
  pattern node()."

"http://www.w3.org/TR/xslt";

  "* node() matches any node other than an attribute node and
  the root node"



at this point, i'm scared to read anything else for the fear
of getting a *fourth* opinion.

rday






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