In the xml document below, I would like to check for 3 things
1. If Phone/@Current ='true'
2. If Type/@Word ='HOME'
3. If Invalid is not true
I have done 1 and 2 but I am not sure how to do 3 in the same line of code.
My xml document which is put into an object objxmlPhoneNode
<?xml...
I would like to get the following output from my xml document. When the dateofbirth is present in the input document (xml doc) I want the result to show pass.
Expected
<?xml version="1.0" encoding="UTF-16"?>
<EditReport xmlns="http://www.courts.state.mn.us/02/MW">
<EditResult>...
I solved this one. I do not need any help.
Here is what I added
<xsl:when test="(ChargeHistory[@ChargeHistoryID=$vFilChrgHistID]/Statute/Degree/@Word='MSD') and ((ChargeHistory[@ChargeHistoryID=$vFilChrgHistID]/Additional/TargetedMisdemeanor='false') or...
My xslt is not working as I expect it to. I expect to get <flag>true</flag> but my output is displaying <flag>false</flag>
The result I want should look like this.
<?xml version="1.0" encoding="UTF-16"?>
<EditReport>
<EditResult>
<EditNumber>4</EditNumber>...
I have the following existing xslt code. I would like to replace this code with a simple statement where I check the first three characters of CaseType/@Word = CNV instead.
<xsl:variable name="ConvertedFELOrGMD">
<xsl:choose>
<xsl:when test="CaseType/@Word =...
I have a when statement that I would like to add one more condition.
I would like to add CaseParty with an Op='A' to my existing count.
How do I do that?
Here is my xslt when test count statement
<xsl:when test="(count(CaseParty[((ObservedRace/@Op='E') or (ObservedEthnicity/@Op='E')) and...
Tom your words are very encouraging. Sometimes I am a little frustrated when I am not able to articulate what I am trying to do. But on the bright side, you have a lot of experience and that helps you understand my questions even when they are not stated in a clear way! Besides you do help...
Thanks Tom as always for helping me. I did modify your solution a little bit in order for it to work as I wanted it to.
Maybe I need to know how to clearly state in my questions what I am trying to achieve and also show the desired output. I know it makes it easier to get help is the question...
Maybe my question was not clear. There are 4 scenarios, I have numbered them below.
Scenario 1. CasePartyUpdates = 0 and ProtectionOrder = 0 No EditResult (Nothing to display.
Scenario 2. CasePartyUpdates > 0 and ProtectionOrder = 0 EditResult is displayed with <Result>Fail</Result>...
My result Pass or Fail should be based on whether or not vPartyUpdateEventCount vPOSendEventCount are greater than zero.
What should I change in xslt code so that it get the value of vPOSendEventCount and vPartyUpdateEventCount?
atlopes. I did as you asked me to but I am still getting the same wrong output when my xml document has the following nodes
<IntegrationCondition Word="BCAPO" Description="BCA PO Notification">
<NotificationEvent notificationType="ProtectionOrder" internalProtectionOrderID="12556"...
I would like to get correct output but my template is returning wrong output.
Correct output should be
<EditReport>
<MessageIdentification>Case:1097</MessageIdentification>
<SourceLocation>111</SourceLocation>
<SourceUser>Tester</SourceUser>
<EditResult>
<EditNumber>001</EditNumber>...
I would like to remove a comma after the last variable value in my output. I am not sure how to apply sub string.
Here is the output that I need to remove comma after last value. My output could have 1 to many values from the variable. If there is only one value, there should not be a comma...
My template is correctly displaying output when any CasePartyName has an Op='E'.
It is also correctly displaying output when any CaseParty/ObservedRace has an Op='E' or CaseParty/ObeservedEthnicity has an Op='E' and Connection/@Word='RSP'
Current output
<NotificationEvent...
I would like to output all Charge elements for all Charges, when OffenseID/ID ID=PENDING.
The important thing to note is that the element <OffenseCite>xyz</OffenseCite will be output as <StatuteNumber>xyz</StatuteNumber>
Sample Output for each Charge should look like this. I did not include...
I would like to output the first FamilyJudgement from my xml document. How do I do it?
Expected output
<FamilyJudgment judgmentKey="3928551">
<JudgmentEventTypeText>Custody order</JudgmentEventTypeText>
</FamilyJudgment>
xml document
<?xml version="1.0" encoding="UTF-8"?>
<CaseNotification>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.