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

Re: toc with number with element selection

Subject: Re: toc with number with element selection
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxx>
Date: Thu, 27 Feb 2014 14:09:18 -0500
Re:  toc with number with element selection
Dear Jean-Francois,

Try something like this:

<xsl:variable name="filtered">
  <xsl:apply-templates select="/" mode="filter"/>
</xsl:variable>

Then you apply templates select="$filtered" to process the $filtered
temporary tree in place of the source document.

Take care when you do so that you do not match its root node with a
template that puts you into an eternal loop! You can avoid this by
using another mode or by seeing to it that the temporary tree has no
root node (use as="element()" on the variable declaration).

I hope this helps; ask again if this is too cryptic. This is a
powerful technique with many applications.

Cheers, Wendell


On Thu, Feb 27, 2014 at 11:15 AM, jfrm.maurel@xxxxxxxxx
<jfrm.maurel@xxxxxxxxx> wrote:
> Le 27/02/2014 15:51, Wendell Piez a C)crit :
>
> Hi Wendell,
>
>> Let us know if you need any more hints.
>
>
> Thank you very much for your helpful answer.
>
> In the mean time I exprimented on the 2 solutions you suggest.
>
> I succeded in copying the tree except pdf='no' element and numbering in a
> second stylesheet but I am not sure how to execute this in one stylesheet.
>
> Regards
>
> --
> Jean-FranC'ois MAUREL
> PIMECA
> http://www.pimeca.com
>



--
Wendell Piez | http://www.wendellpiez.com
XML | XSLT | electronic publishing
Eat Your Vegetables
_____oo_________o_o___ooooo____ooooooo_^

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.