[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xslt 2 when test multiple conditions

Subject: Re: xslt 2 when test multiple conditions
From: "LEGAULT, PHILLIP plegault@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 19 Aug 2023 12:56:36 -0000
Re:  xslt 2 when test multiple conditions
Yes, the document is quite large with 80 questions and other information I
wanted to just include the relevant information.
Below has all the elements up to the 2 questions from 2 separate
questionnaires. If the QuestionnaireIdentifier_GCC__c is equal to
<Safety_MedicalAE Questionnaire> then I want the Response_GCC__c from there.


<?xml version="1.0" encoding="UTF-8"?>
<records xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/
         xmlns="urn:enterprise.soap.sforce.com"
         xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
         xmlns:sf="urn:sobject.enterprise.soap.sforce.com"
         xsi:type="sf:Case">
    <sf:Id>xxxxxxxxxxxxx</sf:Id>
    <sf:Case_Responses_GCC__r>
        <records xsi:type="sf:Response_GCC__c">
            <sf:QuestionnaireQuestion_GCC__r
xsi:type="sf:QuestionnaireQuestion_GCC__c">
                <sf:DSMapping_GCC__c>Indication</sf:DSMapping_GCC__c>
                <sf:Questionnaire_GCC__r xsi:type="sf:Questionnaire_GCC__c">
                    <sf:QuestionnaireIdentifier_GCC__c>Safety_MedicalAE
Questionnaire</sf:QuestionnaireIdentifier_GCC__c>
                </sf:Questionnaire_GCC__r>
            </sf:QuestionnaireQuestion_GCC__r>
            <sf:Response_GCC__c>rash</sf:Response_GCC__c>
        </records>
        <records xsi:type="sf:Response_GCC__c">
            <sf:QuestionnaireQuestion_GCC__r
xsi:type="sf:QuestionnaireQuestion_GCC__c">
                <sf:DSMapping_GCC__c>Indication</sf:DSMapping_GCC__c>
                <sf:Questionnaire_GCC__r xsi:type="sf:Questionnaire_GCC__c">
                    <sf:QuestionnaireIdentifier_GCC__c>Safety_Medical_FULL
Questionnaire</sf:QuestionnaireIdentifier_GCC__c>
                </sf:Questionnaire_GCC__r>
            </sf:QuestionnaireQuestion_GCC__r>
            <sf:Response_GCC__c>cough</sf:Response_GCC__c>
        </records>
        <size>80</size>
    </sf:Case_Responses_GCC__r>
</records>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.