Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. momo2000

    How do I add a 3rd condition to my vb.net code?

    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...
  2. momo2000

    How do I get the correct output in xslt?

    Thanks atlopes
  3. momo2000

    How do I get the correct output in xslt?

    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>...
  4. momo2000

    I expect result to be true but I get false

    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...
  5. momo2000

    I expect result to be true but I get false

    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>...
  6. momo2000

    How do I change existing xslt code to a simple statement?

    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 =...
  7. momo2000

    How to I add extra condition on my xslt count when statement?

    Thanks for your help
  8. momo2000

    How to I add extra condition on my xslt count when statement?

    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...
  9. momo2000

    How do I get the right output using template?

    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...
  10. momo2000

    How do I get the right output using template?

    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...
  11. momo2000

    How do I get the right output using template?

    Thank you so so much. It is now working
  12. momo2000

    How do I get the right output using template?

    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>...
  13. momo2000

    How do I get the right output using template?

    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?
  14. momo2000

    How do I get the right output using template?

    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"...
  15. momo2000

    How do I get the right output using template?

    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>...
  16. momo2000

    How do I remove comma after the last variable value?

    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...
  17. momo2000

    How to I check for all Protection orders based on condition?

    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...
  18. momo2000

    How do I output all charges with with Pending ID?

    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...
  19. momo2000

    How do I get the first familyjudgement from xml doc?

    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>...
  20. momo2000

    How do I add exception to my xslt code

    Thanks for your help. With your help my code is now working as expected.

Part and Inventory Search

Back
Top