29.05.2014 Views

The history of luaTEX 2006–2009 / v 0.50 - Pragma ADE

The history of luaTEX 2006–2009 / v 0.50 - Pragma ADE

The history of luaTEX 2006–2009 / v 0.50 - Pragma ADE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

a[position()=5]<br />

maybe<br />

a[first()]<br />

maybe<br />

a[last()]<br />

maybe<br />

(b|c|d) ⋆ alternates (one <strong>of</strong>)<br />

b|c|d ⋆ alternates (one <strong>of</strong>)<br />

!(b|c|d) ⋆ not one <strong>of</strong><br />

a/(b|c|d)/e/f ⋆ anchored alternates<br />

(c/d|e) not likely nested subpaths<br />

a/b[@bla] ⋆ any value <strong>of</strong><br />

a/b/@bla ⋆ any value <strong>of</strong><br />

a/b[@bla='oeps'] ⋆ equals value<br />

a/b[@bla=='oeps'] ⋆ equals value<br />

a/b[@bla'oeps'] ⋆ different value<br />

a/b[@bla!='oeps'] ⋆ different value<br />

...../attribute(id)<br />

...../attributes()<br />

...../text()<br />

...../texts()<br />

...../first()<br />

...../last()<br />

...../index(n)<br />

...../position(n)<br />

root::<br />

parent::<br />

child::<br />

ancestor::<br />

preceding-sibling::<br />

following-sibling::<br />

preceding-sibling-<strong>of</strong>-self::<br />

following-sibling-or-self::<br />

descendent::<br />

preceding::<br />

following::<br />

self::node()<br />

id("tag")<br />

node()<br />

⋆<br />

⋆<br />

⋆<br />

⋆<br />

⋆<br />

⋆<br />

⋆<br />

⋆<br />

⋆<br />

⋆<br />

⋆<br />

⋆<br />

not soon<br />

not soon<br />

not soon<br />

not soon<br />

not soon<br />

not soon<br />

not soon<br />

not soon<br />

not soon<br />

not soon<br />

This list shows that it is also possible to ask for more matches at once. Namespaces are<br />

supported (including a wildcard) and there are mechanisms for namespace remapping.<br />

\startluacode<br />

tex.sprint(xml.join(xml.collect_texts(<br />

136 XML revisioned

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!