|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






