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

Re: XSL help

Subject: Re: XSL help
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Jun 2019 13:05:07 -0000
Re:  XSL help
If you've got code that isn't working, then please show us the code and tell
us how it fails; we'll be happy to explain where you went wrong and that will
help you take the next step up the learning curve.

By contrast, if someone just writes the code for you, you won't learn
anything.

Michael Kay
Saxonica

> On 12 Jun 2019, at 10:33, Rahul Singh rahulsinghindia15@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> I need help for xsl.
>
> Actually Grouping is not working in my xsl, Input and expected output are
given below.
> Input xml:
>
> <country>
>  <states>
>   <city>Albama</city>
>   <pin>1</pin>
>   <zip>aa</zip>
>   <phone>12</phone>
>  </states>
>  <states>
>   <city>Albama</city>
>   <pin>1</pin>
>   <zip>ab</zip>
>   <phone>11</phone>
>  </states>
>  <states>
>   <city>Albama</city>
>   <pin>1</pin>
>   <zip>ic</zip>
>   <phone>14</phone>
>  </states>
>  <states>
>   <city>Austrialia</city>
>   <pin>9</pin>
>   <zip>ac</zip>
>   <phone>04</phone>
>  </states>
>  <states>
>   <city>Canada</city>
>   <pin>8</pin>
>   <zip>pc</zip>
>   <phone>54</phone>
>  </states>
> </country>
>
> Expected Output XML:
> <country>
>   <city type="Albama">
>    <pin type="1">
>     <zip type="aa">
>      <phone type="12"/>
>     </zip>
>     <zip type="ab">
>      <phone type="11"/>
>     </zip>
>     <zip type="ac">
>      <phone type="14"/>
>     </zip>
>    </pin>
>   </city>
> <city type="Austrialia">
>    <pin type="9">
>     <zip type="ac">
>      <phone type="04"/>
>     </zip>
>    </pin>
>   </city>
> <city type="Canada">
>    <pin type="8">
>     <zip type="pc">
>      <phone type="54"/>
>     </zip>
>    </pin>
>   </city>
> </country>
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/293509> (by
email <>)

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.