Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Complex XSL Transformation in SOA Suite

636927Nov 3 2009 — edited Nov 10 2009
I'm trying to do the following transformation:

I have the source node containing delimited string like that: "STRING_1|STRING_2|STRING_3"
I want transform it into set of element <child> inside the parent tag <children>

I've used predefined transformation functions available in JDev (version: 10.1.3.5.0) and built something like that:

<children>
<xsl:choose>
<xsl:when test="element-available(/obj1:AQ_ASSING_COMM_QUEUE_TYPE/RESOURCES)">
<child>
<xsl:value-of select='orcl:create-nodeset-from-delimited-string("child",/obj1:AQ_ASSING_COMM_QUEUE_TYPE/RESOURCES,"|")'/>
</child>
</xsl:when>
<xsl:otherwise>
<child/>
</xsl:otherwise>
</children>

it is using one function checking if the element is available and then using another one creating nodes. Unfortunately it is not working, it always return empty OTHERWISE tag, even if the element and the value inside is available.

When I use xsl:if structure it never return the value inside, so neither test function nor the text function is working. As a matter of fact any advance function I use is not working and I don't know why. Functions without xpath parameters work so I suppose that something is wrong wit hXPath entries but they are built using editor provided.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2009
Added on Nov 3 2009
3 comments
2,017 views