W3C home > Mailing lists > Public > xsl-editors@w3.org > April to June 2001

conditionals not allowed at top-level

From: Mark Nahabedian <naha@ai.mit.edu>
Date: Thu, 26 Apr 2001 17:50:20 -0400 (EDT)
Message-Id: <200104262149.f3QLnw814272@chmls06.mediaone.net>
To: xsl-editors@w3.org

Conditional XSLT elements like <choose> and <if> are not currently
allowed as direct children of <stylesheet>.  I'm writing to request
that this restriction be relaxed.

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

I've defined a <param> element that's a direct child of my
<stylesheet> element to select 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>).

Please reconsider whether conditionals like <choose> and <if> can be
allowed directly under <stylesheet>.
Received on Saturday, 28 April 2001 02:51:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:21 UTC