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!

XSLT 2.0 in BPEL. How to ignore elements in for-each?

Hari SelvaMar 11 2019 — edited Mar 14 2019

Hi Experts,

How to ignore the <Dtl> tags which were read in the prior loops in XSLT2.o ForEach?

For Each is based on <Alert>:First iteration expected output:

<Dtl><Col1>1</Col1><Col2>2</Col2></Dtl><Dtl><Col1>3</Col1><Col2>4</Col2></Dtl>

Second iteration expected output:

I need to ignore <Dtl><Col1>1</Col1><Col2>2</Col2></Dtl><Dtl><Col1>3</Col1><Col2>4</Col2></Dtl>, when I read 2nd <Alert>. I should read and process only <Dtl><Col1>5</Col1><Col2>6</Col2></Dtl><Dtl><Col1>7</Col1><Col2>8</Col2></Dtl><Dtl><Col1>9</Col1><Col2>10</Col2></Dtl>

Third iteration expected output:

Similarly for the 3rd <Alert>, read only <Dtl><Col1>11</Col1><Col2>12</Col2></Dtl> and so on.

Please advise.

Input:

<Alerts>

<Alert>

<Dtl>

<Col1>1</Col1>

<Col2>2</Col2>

</Dtl>

<Dtl>

<Col1>3</Col1>

<Col2>4</Col2>

</Dtl>

</Alert>

<Alert>

<Dtl>

<Col1>1</Col1>

<Col2>2</Col2>

</Dtl>

<Dtl>

<Col1>3</Col1>

<Col2>4</Col2>

</Dtl>

<Dtl>

<Col1>5</Col1>

<Col2>6</Col2>

</Dtl>

<Dtl>

<Col1>7</Col1>

<Col2>8</Col2>

</Dtl>

<Dtl>

<Col1>9</Col1>

<Col2>10</Col2>

</Dtl>

</Alert>

<Alert>

<Dtl>

<Col1>1</Col1>

<Col2>2</Col2>

</Dtl>

<Dtl>

<Col1>3</Col1>

<Col2>4</Col2>

</Dtl>

<Dtl>

<Col1>5</Col1>

<Col2>6</Col2>

</Dtl>

<Dtl>

<Col1>7</Col1>

<Col2>8</Col2>

</Dtl>

<Dtl>

<Col1>9</Col1>

<Col2>10</Col2>

</Dtl>

<Dtl>

<Col1>11</Col1>

<Col2>12</Col2>

</Dtl>

</Alert>

</Alerts>

Please advise

Thanks

This post has been answered by vladodias on Mar 12 2019
Jump to Answer
Comments
Post Details
Added on Mar 11 2019
3 comments
912 views