Skip to Main Content

Programming Languages & Frameworks

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

XSLT Check Contents of Ancestor

Rita GreenbergDec 8 2023

Here's my XML tags.
<TRCINFO>
<RCHEADER>FL Reduction Explanations:</RCHEADER>
<RCLINE>
<RCCODE>FL 94</RCCODE>
<RC_CBRTIME>0</RC_CBRTIME>
<RC_NOPRINT>0</RC_NOPRINT>
<PDFPRINT>Y</PDFPRINT>
<CRCBILLLEVEL></CRCBILLLEVEL>
<RCEXPLANATION>
<LINE>Paid: Out-of-State Provider: payment made</LINE>
<LINE>pursuant to the Out-of-State Provider Section of</LINE>
<LINE>the applicable Florida reimbursement manual.</LINE>
</RCEXPLANATION>
</RCLINE>
<RCLINE>
<RCCODE>FL 98</RCCODE>
<RC_CBRTIME>0</RC_CBRTIME>
<RC_NOPRINT>0</RC_NOPRINT>
<PDFPRINT>Y</PDFPRINT>
<CRCBILLLEVEL></CRCBILLLEVEL>
<RCEXPLANATION>
<LINE>Paid: no modification to the information provided</LINE>
<LINE>on the medical bill; dispensed medication; billed</LINE>
<LINE>original manufacturer's NDC number only; reimbursed</LINE>
<LINE>pursuant to paragraph 440.13(12)(c), F.S.</LINE>
</RCEXPLANATION>
</RCLINE>

<CRCSTATERCINFO>
<RCHEADER>FL Reduction Explanations:</RCHEADER>
<RCLINE>
<RCCODE>FL 98</RCCODE>
<RC_CBRTIME>0</RC_CBRTIME>
<RC_NOPRINT>0</RC_NOPRINT>
<PDFPRINT>Y</PDFPRINT>
<CRCBILLLEVEL></CRCBILLLEVEL>
<RCEXPLANATION>
<LINE>Paid: no modification to the information provided</LINE>
<LINE>on the medical bill; dispensed medication; billed</LINE>
<LINE>original manufacturer's NDC number only; reimbursed</LINE>
<LINE>pursuant to paragraph 440.13(12)(c), F.S.</LINE>
</RCEXPLANATION>
</RCLINE>
</CRCSTATERCINFO>

Here's my dilemma.
Within <CRCSTATERCINFO><RCLINE><RCEXPLANATION><LINE> if the corresponding
<CRCSTATERCINFO><RCLINE><PDFPRINT>Y
AND <CRCSTATERCINFO><RCLINE><RCCODE> not found in any of the <TRCINFO><RCLINE><RCCODE>
AND its corresponding <TRCINFO><RCLINE><PDFPRINT>N.

I have no idea where to start!
Any suggestions will be greatly appreciated.

Thank you.

Comments

dvohra21 Dec 9 2023

Use xslt:if to test the elements

https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/if

1 - 1

Post Details

Added on Dec 8 2023
1 comment
162 views