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

Re: Need test for preceding-sibling

Subject: Re: Need test for preceding-sibling
From: Lars Huttar <lars_huttar@xxxxxxx>
Date: Fri, 24 Apr 2009 09:52:22 -0500
Re:  Need test for preceding-sibling
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

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.