xsl-list
[Top] [All Lists]

Re: [xsl] Need test for preceding-sibling

2009-04-24 10:51:34
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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