[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: Move elements to preceding parent
Subject: Re: Move elements to preceding parent|
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 17 Jun 2009 14:03:53 +0200
Israel Viente wrote:
Meanwhile I found that I have input cases where the 2 rules are ambiguous.
For example if the input is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<p dir="rtl"><span class="regular">line10</span>
<p dir="rtl"><span class="regular">line12</span>
<p dir="rtl"><span class="regular">line13.</span>
the error I get is:
XTRE0540: Ambiguous rule match for /html/body/p
How can I make a rule that will take all the following-sibling p's
internal nodes until it finds one that it's last span ends with
paragraph terminator? And of course change the 2nd rule accordingly to
remove those merged to the upper sibling.
How do you want to transform that sample you posted? Can you show us how
the transformation result should look?
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