|
Subject: Re: [xsl] Need test for preceding-sibling From: Lars Huttar <lars_huttar@xxxxxxx> Date: Fri, 24 Apr 2009 09:52:22 -0500 |
On 4/23/2009 1:35 PM, Hintz, David L wrote:
> Thanks, Ken! I should have been clearer in my description. Each <a1> and <a2> should be paired, even though there may be intervening tags. However, an <a2> without its paired <a1> should not be processed. I'll try your grouping solution.
> At 2009-04-23 16:23 -0400, Hintz, David L wrote:
> Now I see that I over-simplified the problem. The XSLT also has to
> suppress any <a1> that is not paired with an <a2>.
In the case of
<a1/>
<b/>
<a1/>
<c/>
<a2/>
which <a1/> do you want to suppress?
Just curious. It seems like the requirement is still ill-defined, but
maybe that's just me.
Would it be possible to use XML structure for pairing, as in
<a>
<b />
</a>
instead of
<a1/>
<b/>
<a2/>
?
That allow you to leverage the pairing facilities that XML offers natively.
Lars
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Need test for preceding-s, G. Ken Holman | Thread | RE: [xsl] Need test for preceding-s, Michael Kay |
| Re: [xsl] creating of id and refid, Martin Honnen | Date | [xsl] How to sort by elements of a , Leo Studer |
| Month |