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

Re: possible grouping problem.

Subject: Re: possible grouping problem.
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Oct 2020 08:24:13 -0000
Re:  possible grouping problem.
Spare a thought for your readers! This problem would be so much easier to
understand if you reduced the id's to simple values like M01 and O22, and if
you reduced the number of elements so the XML fits on one screen without
scrolling. You're much more likely to get a response if the problem is clear
without 10 minutes staring at it.

Michael Kay
Saxonica

> On 19 Oct 2020, at 22:15, Charlie0 charlieo0@xxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Greetings,
>
> I have an issue that I think is a grouping problem but I just can't seem to
figure it out. I have no code to show as I'm that lost on this.
>
> I have the following XML that needs to transform to a comma delimited text
file. See text after the XML. Any assistance to get me in the right direction
is appreciated.
>
> XML:
>
> <work_package id="M2183892350419">
>   <eqpcond>
>      <targetfile id="O1012492350419"/>
>   </eqpcond>
>   <eqpcond>
>      <targetfile id="O1003092350419">
>         <targetfile id="O1012492350419"/>
>         <targetfile id="O1000492350419"/>
>         <targetfile id="O1002492350419">
>            <targetfile id="O1012492350419"/>
>            <targetfile id="O1000192350418"/>
>            <targetfile id="O1000192350416"/>
>            <targetfile id="O1000192350417"/>
>            <targetfile id="O1000192350415"/>
>            <targetfile id="O1000192350414"/>
>         </targetfile>
>      </targetfile>
>   </eqpcond>
>   <eqpcond>
>      <targetfile id="M2184292350419">
>         <targetfile id="O1012492350419"/>
>         <targetfile id="M2171392350419">
>            <targetfile id="O1012492350419"/>
>            <targetfile id="M2171492350419">
>               <targetfile id="O1012492350419"/>
>               <targetfile id="M2171292350419"/>
>            </targetfile>
>            <targetfile id="M2171192350419">
>               <targetfile id="O1012492350419"/>
>            </targetfile>
>         </targetfile>
>         <targetfile id="M2183992350419">
>            <targetfile id="O1012492350419"/>
>            <targetfile id="O1003092350419">
>               <targetfile id="O1012492350419"/>
>               <targetfile id="O1000492350419"/>
>               <targetfile id="O1002492350419"/>
>            </targetfile>
>            <targetfile id="O1011492350417">
>               <targetfile id="O1012492350419"/>
>            </targetfile>
>         </targetfile>
>         <targetfile id="M2007992350419">
>            <targetfile id="O1012492350419"/>
>            <targetfile id="O1003092350419">
>               <targetfile id="O1012492350419"/>
>               <targetfile id="O1000492350419"/>
>               <targetfile id="O1002492350419"/>
>            </targetfile>
>         </targetfile>
> </targetfile></eqpcond></work_package>
>
> Desired output:
>
> M2183892350419,O1012492350419
> M2183892350419,O1003092350419
> M2183892350419,,O1012492350419,O1000492350419,O1002492350419
>
M2183892350419,,,O1012492350419,O1000192350418,O1000192350416,O1000192350417
> M2183892350419,M2184292350419
> M2183892350419,,O1012492350419,M2171392350419
> M2183892350419,,,O1012492350419,M2171492350419
> M2183892350419,,,,O1012492350419,M2171292350419
> M2183892350419,,,M2171192350419
> M2183892350419,,,,O1012492350419
> M2183892350419,,M2183992350419
> M2183892350419,,,O1012492350419,O1003092350419
> M2183892350419,,,,O1012492350419,O1000492350419,O1002492350419
> M2183892350419,,,O1011492350417
> M2183892350419,,,,O1012492350419
> M2183892350419,,M2007992350419
> M2183892350419,,,O1012492350419,O1003092350419
> M2183892350419,,,,O1012492350419,O1000492350419,O1002492350419
>
> Regards,
>
> CharlieO

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.