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

Re: Conditional Execution in XSLT 2.0

Subject: Re: Conditional Execution in XSLT 2.0
From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Date: Sun, 14 Mar 2010 09:04:32 +0530
Re:  Conditional Execution in XSLT 2.0
I think, using stylesheet parameters, coupled with xsl:if or
xsl:choose is a good idea for this problem description.

On Sun, Mar 14, 2010 at 7:09 AM, Jacobus Reyneke
<jacobusreyneke@xxxxxxxxx> wrote:
> Hi,
>
> I'm currently writing my content in XML, while at the same time
> writing XSLT to transform this content into a written manual. The
> problem is that sometimes I just want to quickly print out part of my
> document using XSL-FO to PDF.
>
> For example, what if I just quickly want to build the table of
> contents, of if I just want to get certain element types, sometimes
> only the structure of my XML, sometimes just the images. Things like
> that.
>
> Currently I'm commenting out parts of the XSLT, but there must be a
> better way. Should I split my XSLT into different libraries and
> conditionally include them based on parameters, or should I try and
> set variables throughout the doc using things such as
> visible/invisible? is there a tried and tested way when working with
> ever changing XML and XSLT while still creating and building the
> content and transformations?
>
> What I just had to do as an example, was to comment out my "body text"
> templates and "list templates" and "image" templates" etc, just so I
> could print out the document structure without any content. Am I being
> stupid here?
>
> Best,
> Jacobus



-- 
Regards,
Mukul Gandhi

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.