XSLT 1.0 ( Xpath1.0)?
XPath 1.0:
root/sub-root/parent/child/grand_child
/dummy1/dummy2/dummy3/dummy4
/*
[starts-with(name(), 'node_')
and
substring-after(name(), 'node_') >= 1
and
not(substring-after(name(), 'node_') > $N)
]
XPath, . , XSLT 1.0 xsl:.
, N , (, 1000) XPath , , XSLT 1.0.
, , . node - "---", node , .
, ::
*
[starts-with(name(), 'node_')
and
substring-after(name(), 'node_') >= 1
and
not(substring-after(name(), 'node_') > {N})
]
{N} - $N.
Or, in the simplest case (it happens quite often), if there are four nodes and no value is required , you can simply use:
node_1|node_2|node_3|node_4
source
share