XPathScript knows a hash named $t, which allows it (via a key, a sub-key and a third field) to collect processing instructions (not in the XML sense of the word) in a single spot. The notation is $t{element}{subkey} = '...';, where element literally means one of those appearing in the document (and only this, not at all as an XPath expression).
pre/post - output before/after element
prechildren/postchildren - output before/after child element of the one in context
prechild/postchild - output before/after single child elements
showtag - if true: display of start/end-tag of current element
testcode - code to process the current element
Dieser Text ist der Zeitschriften-Ausgabe 03/2001 von iX entnommen.
iOS, Android, Windows Phone 7 und HTML5 - das neue Sonderheft von heise Developer führt Einsteiger und Profis in die Programmierung mobiler Geräte ein.