Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 25th, 2016, 04:22 PM
Friend of Wrox
 
Join Date: Apr 2013
Posts: 101
Thanks: 14
Thanked 0 Times in 0 Posts
Default 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
Code:
<FamilyJudgment judgmentKey="3928551">
	<JudgmentEventTypeText>Custody order</JudgmentEventTypeText>
</FamilyJudgment>
xml document
Code:
<?xml version="1.0" encoding="UTF-8"?>
<CaseNotification>
	<CourtDecisionNotification>
		<TriggeredDateTime>2016-07-12T15:05:45-05:00</TriggeredDateTime>
		<NotificationEvent>CourtDecisionModified</NotificationEvent>
		<FamilyJudgment judgmentKey="3928551">
			<JudgmentEventTypeText>Custody order</JudgmentEventTypeText>
			<JudgmentEventDate>2016-07-12</JudgmentEventDate>
			<Custody>
				<CustodyDescriptionText>Legal custody</CustodyDescriptionText>
			</Custody>
		</FamilyJudgment>
		<FamilyJudgment judgmentKey="3928551">
			<JudgmentEventTypeText>Custody order</JudgmentEventTypeText>
			<JudgmentEventDate>2016-07-12</JudgmentEventDate>
			<Custody>
				<CustodyDescriptionText>Legal custody</CustodyDescriptionText>
			</Custody>
		</FamilyJudgment>
	</CourtDecisionNotification>
</CaseNotification>
 
Old July 26th, 2016, 04:52 PM
Friend of Wrox
 
Join Date: Apr 2013
Posts: 101
Thanks: 14
Thanked 0 Times in 0 Posts
Default

I did resolve this one





Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting an XML doc to XSLT xsltguy XSLT 3 July 24th, 2009 05:17 PM
Creating XML doc ; writing string(xml format) into KamalRaturi XML 5 May 28th, 2008 05:51 AM
Reading XML doc into dataset ankitd25 XML 4 April 29th, 2008 02:37 AM
Help making a doc using XML topshed XML 2 January 28th, 2006 08:05 PM
whole database to XML doc beyondforsaken VB How-To 4 June 11th, 2003 08:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.