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

Re: Feature Request: a fail condition for <xsl:if>

Subject: Re: Feature Request: a fail condition for <xsl:if>
From: James Clark <jjc@xxxxxxxxxx>
Date: Wed, 13 Jan 1999 12:00:11 +0700
xsl else
Tyler Baker wrote:

> You would not have to wrap everything in a
> choose element if you did something like:
> 
> <xsl:if test="">
> </xsl:if>
> <xsl:else-if test="">
> </xsl:else-if>
> <xsl:else>
> </xsl:else>
> 
> Not sure how to represent this in a DTD,

You can't do it well.  In the DTD you would have to allow xsl:if,
xsl:else-if and xsl:else anywhere.  DTDs don't work very well for
expressing the structure of XSL stylesheets. What's needed is a cross
between an element content model and a mixed content model, where you
have the full power of an element content model, but #PCDATA is allowed,
and whitespace is handled by applying a default white space handling
rule of ignoring whitespace-only #PCDATA chunks.

> but I think it would be more natural
> to most programmers.

Probably true.

James


 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.