I have a relative simple xml as input
<annotations>
<annotation on_class="CustomREST" name="AuthSaml" method="entity" value=""/>
<annotation on_class="CustomREST" name="AuthSaml" method="value" value="a"/>
<annotation on_class="DefaultJobREST" name="AuthSaml" method="entity" value=""/>
<annotation on_class="DefaultJobREST" name="AuthSaml" method="value" value="b"/>
</annotations>
I want to use the values from the annotation where the method equals value. I have a small xsl transformation to grab the values, but with this I only get one value, so I cant process it as 2 values.
invoke usxsl.apply with select
'<annotations> <anno.... </annotations>',
'<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" indent="no" omit-xml-declaration="yes" />
<xsl:template match="annotation[@method=''value'']">
<xsl:value-of select="@value"/>
</xsl:template>
</xsl:stylesheet>'
/*which results in*/
-----report on script no. 1
a b
-----end of report on script no. 1
What I want to use it for is something like this
Invoke MyComponent.Function with select
TAB1.COL1, TAB1.COL2
from
TAB1
where
TAB1.ID IN (<xslapplyresult>)
How do I achieve this?