clarification : predicates : one (? or more ?) per each expression?

  hello
.



in the document at
	http://www.w3.org/TR/xpath

	, section 2 ,

  there is the text:

	child::para[position()=5][attribute::type="warning"] 
  .


== two predicates on the { node-test + axis-name } pair (?).



questions:


1)

	a)  is 
		child::para[position()=5][attribute::type="warning"] 

	synonymous with

		child::para[position()=5 and attribute::type="warning"] 

	?


	b)  or can the 'and' operator only be used, here, 
		between expressions of a like type? 

		(e.g.:  employee[@secretary and @assistant]  ) 

	? 



2)	would

		employee[@secretary][@assistant]
	
	be valid? 

	and would it be the same as 

		employee[@secretary and @assistant] 

	?










also,

<sidebar>
something of a "skip to TOC" link, at the top of every w3c rec and wd and such,
might be nice, and would probably be appreciated.

e.g.:

<document-fragment>
<![CDATA[

<div class="head">
	<a href="http://www.w3.org/"
	  ><img src="http://www.w3.org/Icons/WWW/w3c_home" alt="W3C" height="48"
width="72"></a>

	<div align="right">
		<a href="document.this#TOC"
			>Table of Contents</a>
	</div>

]]>

</document-fragment>


</sidebar>




thank you.




may your days go well.



-- s.c.

Received on Sunday, 16 July 2000 14:49:06 UTC