[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: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 3 May 2005 00:11:46 +0100
marking and revision
   > I tried David's method, and I found one instance in which is does not work.

   what's different about that instance? It looks just like the other cases
   your described with PIs at well balanced positions. The method will work
   for that case as well as far as I can see.

   David


Ah I see Wendell's answered that for me. Nothing is different about that
instance: the method as decribed doesn't work ever. It could be made to
work but I think it's probably easier not to use keys and instead walk
over the tree one step at a time:



<xsl:template match="section">
<div>
<xsl:apply-templates select="node()[1]" mode="w"/>
</div>
</xsl:template>


<xsl:template match="node()" mode="w">
<xsl:apply-templates select="."/>
<xsl:apply-templates select="following-sibling::node()[1]"/>
</xsl:template>


<xsl:template match="processing-instruction('xm-insertion-mark-start')" mode="w">
<div class="revision">
  <xsl:apply-templates select="following-sibling::node()[1]"/>
</div>
<xsl:apply-templates select="following-sibling::processing-instruction('xm-insertion-mark-start')[1]/following-sibling::node()[1]"/>
</xsl:template>

<xsl:template match="processing-instruction('xm-insertion-mark-end')" mode="w"/>


David (untested again:-)

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.