|
|
|
Code
|
<_data >
<i >no name</i>
<i name="-" >name no good</i>
<i >.name== of SCS not satisfied here<complex >YES!</complex></i>
<i name="-" >name no good</i>
<i >.name== part of SCS not satisfied here<complex >YES!</complex></i>
<i name="-" >name no good</i>
<i name="test" >complex== part of SCS not satisfied here</i>
<i name="test" >A <complex >YES!</complex></i>
<i name="test" >complex== part of SCS not satisfied here</i>
<i name="test" >B <complex >YES!</complex></i>
<i name="test" >C <complex >YES!</complex></i>
<i name="test" >D <complex >YES!</complex></i>
<i name="test" >complex== part of SCS not satisfied here</i>
<i name="-" >name no good</i>
<i name="-" >name no good</i>
<i >.name== part of SCS not satisfied here<complex >YES!</complex></i>
<i name="-" >name no good</i>
<i name="test" >complex== part of SCS not satisfied here</i>
</_data>
Attribute stipulation first: # join( i{(.name == "test") and (complex == "YES!")}, ' & ' ) #
Object stipulation first: # join( i{(complex == "YES!") and (.name == "test")}, ' & ' ) #
Specific content request: # join( i{(.name == "test") and (complex == "YES!")}.__content, ' & ' ) #
Content text only: # join( i{(complex == "YES!") and (.name == "test")}.__text_content, '& ' ) #
|
Output
|
Attribute stipulation first: A <complex >YES!</complex> & B <complex >YES!</complex> & C <complex >YES!</complex> & D <complex >YES!</complex>
Object stipulation first: A <complex >YES!</complex> & B <complex >YES!</complex> & C <complex >YES!</complex> & D <complex >YES!</complex>
Specific content request: A <complex >YES!</complex> & B <complex >YES!</complex> & C <complex >YES!</complex> & D <complex >YES!</complex>
Content text only: A & B & C & D
|
Ref
|
x.3203
|
XML Script homepage
| Documentation home
| XML Script docs
| Command list
| Function list
| X-Tract docs
X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited © Copyright 1998-2000 DecisionSoft Limited
|