Mercurial > dive4elements > river
view flys-aft/doc/pegelstationen.xml @ 4737:718adea968e2
Add <dc:variable name="variable" expr="xpath"/> construct to datacage language.
Each time during traversal of the template this element is found a variable
called 'variable' is set to the result of the the evaluation of the
XPpath 'xpath'.
Example:
<dc:variable name="x" expr="$x + 1"/> <!-- Assign x+1 to x -->
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 02 Jan 2013 14:05:21 +0100 |
parents | 44dc38ca8492 |
children |
line wrap: on
line source
<?xml version="1.0" encoding="utf-8"?> <STATIONEN> <STATION NAME="FREMERSDORF" NUMMER="0026400550" /> <STATION NAME="ST.ARNUAL" NUMMER="0026400220" /> <STATION NAME="COCHEM" NUMMER="0002690010" /> <STATION NAME="TRIER" NUMMER="0002650010" /> <STATION NAME="PERL" NUMMER="0002610010" /> <STATION NAME="SCHOENA" NUMMER="501010"/> <STATION NAME="DRESDEN" NUMMER="501060"/> <STATION NAME="TORGAU" NUMMER="501261"/> <STATION NAME="WITTENBERG" NUMMER="501420"/> <STATION NAME="AKEN" NUMMER="502010"/> <STATION NAME="BARBY" NUMMER="502070"/> <STATION NAME="MAGDEBURG-STR" NUMMER="502180"/> <STATION NAME="TANGERMUENDE" NUMMER="502350"/> <STATION NAME="WITTENBERGE" NUMMER="503050"/> <STATION NAME="NEU DARCHAU" NUMMER="5930010"/> </STATIONEN>