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

Re: Revision Marking in HTML

Subject: Re: Revision Marking in HTML
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 02 May 2005 17:45:35 -0400
Re:  Revision Marking in HTML
Nadia,

At 02:25 PM 5/2/2005, you wrote:
I think I found the solution all by my little self.

I changed the key to:

<xsl:key name="p"
match="node()[following-sibling::processing-instruction('xm-insertion_mark_end')]"

use="generate-id(preceding-sibling::processing-instruction('xm-insertion_mark_start')[1])"/>

and the "apply-templates" to...

That's grand but I don't think it'll work. (Sorry I'm not able to dig deeper today.)


The new key definition is effectively the same as the old one, except it only matches nodes followed by an insertion_mark_end. So in this case:

<?xm-insertion_mark_start?>
<a/>
<b/>
<?xm-insertion_mark_end?>
<c/>
<?xm-insertion_mark_start?>
<d/>
<e/>
<?xm-insertion_mark_end?>

The 'c' node is included with the group including <a/> and <b/> (since like them it does indeed have a following-sibling insertion_mark_end, just not the same one).

This, at least, is going to mess you up.

(I see other things that probably won't work as expected, but they are tortuous to explain.)

Accordingly, I'd *at least* recommend stress-testing this against a few "pathological" cases so you know what you're getting into.

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

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.