xsl-list
[Top] [All Lists]

Re: [xsl] We need to kick someone out of the group

2021-06-11 08:31:51
Alas, I cannot use Martin’s 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(_at_)wendellpiez(_dot_)com 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> 
Sent: Friday, June 11, 2021 8:42 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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

--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--


<Prev in Thread] Current Thread [Next in Thread>