[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: Nadia.Swaby@xxxxxx
Date: Tue, 03 May 2005 07:25:19 -0400
r.e revision
Holy cr*p.  This is going to be long and involved isn't it?

Is it any easier in XSLT 2.0?  I don't exactly have all year to work on it,
so I am thinking that it may be easier to stick to the old stylesheet, and
then change it when we are in the position to use XSLT 2.0.

Thanks

Nadia Swaby



                                                                                                                             
                      David Carlisle                                                                                         
                      <davidc@xxxxxxxx         To:      xsl-list@xxxxxxxxxxxxxxxxxxxxxx                                      
                      k>                       cc:                                                                           
                                               Subject: Re:  Revision Marking in HTML                                   
                      2005-05-02 19:11                                                                                       
                      Please respond                                                                                         
                      to xsl-list                                                                                            
                                                                                                                             
                                                                                                                             






   > 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.