OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: DOCBOOK-APPS: no wonder i'm confused about the node() function


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
> 
> 
> 


"Beginning XSLT", Jeni Tennison, p. 244

"Different node types are matched or selected by different node tests, such as 
node(), text(), _comment()_, and _processing-instruction()_..."

so you might want to try to add templates for the later two also.

markus



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]