문제

Function: node-set id(object)

When the argument to id is of type node-set, then the result is the union of the result of applying id to the string-value of each of the nodes in the argument node-set.

I didn't get the above lines from the doc. May I have one example to understand the same ?

Thanks

도움이 되었습니까?

해결책

Sure

Suppose your document uses an attribute idref="A B C" to contain a reference to the nodes with id="A", id="B", and id="C".

Then id(//@idref) will select all the nodes with id's that are referenced in any @idref attribute anywhere in the document.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top