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

conditionals not allowed at top-level

Subject: conditionals not allowed at top-level
From: Mark Nahabedian <naha@xxxxxxxxxx>
Date: Wed, 25 Apr 2001 10:00:22 -0400 (EDT)
 conditionals not allowed at top-level
I trust this is an appropriate forum to suggest changes to the XSL
specification.

I'm working on a stylesheet which is to transform its input data for
presentation as either SVG (if I ever get that to work) or as an HTML
table.

I've defined a top-level (within the <stylesheet> element) <param>
element to control the output format.  I attempted to have a top-level
<choose> element to select what <output> element should be generated
depending on the value of that parameter.  Alas, the processor
complained, and rightly so, as I see from the DTD in the XSLT spec
that <choose> is not allowed directly within <stylesheet>.

I wonder if there is any particular reason for this restriction.  It
seems to me that there are several top-level elements which one might
like to conditionalize, though there are others which the processor
might find difficult to treat conditionally (e.g. <template>).

I'd like to confine my code to a single file, but I suppose, as a
workaround, I could have separate XSLT files for the html table and
the SVG output formats and include the common code from yet a third
file.
 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.