Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Kommentar: Migrated to Confluence 5.3

...

ParameterDescriptionExample
xpathXPath to address a node or a node list. Every referenced node will become a variable definition.
If you address nodes with an xpath selector like '//' or '//*' be sure that the node names are unique. Otherwise specify a name/value tuple where the name comes from another node.
/purchaseOrder/item/quantity
/item//*
//quantity
nameDefines the name and its value holder (optional) tag name (comma separated).
  • If no name is defined, the node tag name will be taken.
  • If just (withoud value holder name) a name is defined, the value is the direct child value of the target node (specified in xpath).
  • If a name and a value holder is defined, the name and the value holder name must be an existing direct child of the target node (specified in xpath).

Note: If you want the name or the value to be interpreted as a child node/child value you need to specify the variable as isDynamic = true.


myName
myName,myValue
conditionDefines if the var definition should be applied. This must be a valid jaxfront formula (JEP expression) returning a boolean.nodeValue(".") == true
namePrefix
(optional)
You may prefix all the var names if you like. This is optional but very powerfull if you know about duplicate node names.nl-1
nl-2
namePostfix
(optional) 
You may postfix all the var names if you like. This is optional but very powerfull if you know about duplicate node names.

-postfix

isDynamicIf you like to take the var name (and/or its value) from another node, be sure you mark the var as 'isDynamic'. Default is false.
If false the name of the variable is eather a fix name or if the name is empty the tag name of the target node will be taken.
true/false

...

Codeblock
themeEclipse
languagexml
linenumberstrue
   <var>
		<name>name</name>
		<xpath>/feedback/contact/name</xpath>
	</var>
	<var>
		<name>email</name>
		<xpath>/feedback/contact/email</xpath>
	</var>
	<var>
		<name>company</name>
		<xpath>/feedback/contact/company</xpath>
	</var>
	<var isDynamic="true">
		<name>.,test</name>
		<xpath>/Form/SpecialForm/Plugins/*</xpath>
	</var>
	<var isDynamic="true">
              		<name>../../../config/type/@name</name>
              		<condition>nodeLabel(choosenNode(&quot;../../../config/type&quot;)) != &quot;raster&quot;</condition>
              		<xpath>//page//element/value/simple/text()</xpath>
       	</var>
       	<var isDynamic="true">
              		<name>./config/@name</name>
              		<xpath>//page/UNNAMED1/group</xpath>
       	</var>
       	<var isDynamic="true">
              		<name>../../../config/type/@name</name>
              		<namePostfix>formula:pos()</namePostfix>
              		<xpath>//page//element/value/list/sl</xpath>
       	</var>
       	<var isDynamic="true">
              		<name>formula:&quot;../../../../config/type/table/column[&quot; + integer(subStringAfter(nodeName(&quot;.&quot;),,1)) + &quot;]/@name&quot;</name>
              		<namePrefix>formula:nodeValue(&quot;../../../../config/type/@name&quot;)</namePrefix>
              		<namePostfix>formula:pos()</namePostfix>
              		<xpath>//page//element/value/list/*/*[starts-with(local-name(), &apos;c&apos;)]</xpath>
       	</var>