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

Re: xsl:for-each in Corresp Tag

Subject: Re: xsl:for-each in Corresp Tag
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Feb 2020 17:15:42 -0000
Re:  xsl:for-each in Corresp Tag
On 12.02.2020 18:06, Byomokesh Sahoo sahoo.byomokesh@xxxxxxxxx wrote:

XML

<corresp><label>Correspondence to</label> Anne Marie Darling,
<institution content-type="department">Department of
Epidemiology</institution>, <institution>Boston
University</institution>, <addr-line content-type="street">715 Albany
Street</addr-line>, <country>USA</country>; <email>amdarlin@xxxxxx
<mailto:amdarlin@xxxxxx></email></corresp>

<corresp><label>Correspondence to</label> Anne Marie Darling,
<institution content-type="department">Department of
Epidemiology</institution>, <addr-line
content-type="postal-code">02118</addr-line>, <country>USA</country>;
</corresp>

<corresp>Joanne Lawrence, Association of British Neurologists, Ormond
House, 27 Boswell Street, London WC1N 3JZ, UK;
<email>joanne.lawrence@xxxxxxxxxx
<mailto:joanne.lawrence@xxxxxxxxxx></email></corresp>

Desired Output

<corresp><x>Correspondence to</x> Anne Marie Darling,
<institution><department>Department of Epidemiology</department>,
<institution-name>Boston University</institution-name></institution>,
<street>715 Albany Street</street>, <country>USA</country>;
<email>amdarlin@xxxxxx <mailto:amdarlin@xxxxxx></email></corresp>

<corresp><x>Correspondence to</x> Anne Marie Darling,
<institution><department>Department of Epidemiology</department>,
<postal-code>02118</postal-code>, <country>USA</country>;
<email>amdarlin@xxxxxx <mailto:amdarlin@xxxxxx></email></corresp>

Is the start tag <institution> not closed at all?


<corresp>Joanne Lawrence, Association of British Neurologists, Ormond House, 27 Boswell Street, London WC1N 3JZ, UK; <email>joanne.lawrence@xxxxxxxxxx <mailto:joanne.lawrence@xxxxxxxxxx></email></corresp>


Please explain the transformation rules you want to implement. Posting two samples of XML together with longish code that doesn't do the job isn't really a way to tell us what kind of transformation you want to achieve.

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.