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

Re: We need to kick someone out of the group

Subject: Re: We need to kick someone out of the group
From: "Wendell Piez wapiez@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 11 Jun 2021 18:06:10 -0000
Re:  We need to kick someone out of the group
Hey Charles,

If the data is as I guessed, instead of grouping you could use keys to
assemble the data into the structure you want.

Inside the contrib-group in the result, pull the wanted affiliations into
the contrib-group using an appropriate key to grab and copy them.

And when they are matched outside the contrib-group, drop them.

The hard part is writing the key but here it's just name="aff-by-id"
match="aff" use="@id" isn't it?

And yes, clarity is a value and quite difficult to achieve, in beer and
other things.

Cheers, Wendell


On Fri, Jun 11, 2021 at 9:32 AM Charles O'Connor coconnor@xxxxxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> Alas, I cannot use Martinbs solution, as I am limited to XSLT 2.0.
>
> Wendell, Sorry. When I simplified the input for the question, I forgot the
> "aff" in the @id <aff>. It should indeed match the @rid in the <xref>. I
> will have to bone up on keys.
>
> As for beer, clean beers like Pilsners are rather hard to brew well
> because clarity is a value and the flavors are so delicate that any flaw in
> technique is glaringly apparent. Out of 4 or 5 tries, I've nailed it only
> once.
>
>
>
> From: Wendell Piez wapiez@xxxxxxxxxxxxxxx <
> xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Friday, June 11, 2021 8:42 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  We need to kick someone out of the group
>
> *** External email: use caution ***
>
> Charles,
>
> Your stated input has:
>
> <contrib-group>
>         <contrib><name>Bob</name><xref rid="aff1"/></contrib>
>         <contrib><name>Judy</name><xref rid="aff2"/></contrib>
>     </contrib-group>
>     <aff id="1"><label>1</label>Kingdom of Curds</aff>
>     <aff id="2"><label>2</label>Land of Whey</aff>
>
> So, we must inquire, those aff elements are loose? In other words, you do
> not have the case
>
> <aff id="aff1">Kingdom of Curds</aff>
>
> with an explicit id/rid link?
>
> Or if not, is such linking implicit (i.e. Bob really is from Curds, and
> you want to move the aff to reflect this)?
>
> Because if so (depending on your inputs) it might be more robust to build
> a key and work that way.
>
> Meanwhile I see Martin H has given an answer to the question actually
> posed. :-)
>
> My own tastes go to very clean beers, such as Pilsner or Koelsch. Of
> course the great thing about beer is, we all get to please ourselves.
>
> Regards, Wendell
>
>
>
>

--
...Wendell Piez... ...wendell -at- nist -dot- gov...
...wendellpiez.com... ...pellucidliterature.org... ...pausepress.org...
...github.com/wendellpiez... ...gitlab.coko.foundation/wendell...

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.