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

Re: Co-validating stylesheets?

Subject: Re: Co-validating stylesheets?
From: "Oren Ben-Kiki" <oren@xxxxxxxxxxxxx>
Date: Thu, 4 Nov 1999 19:22:21 +0200
stylesheet validation
disco <disco@xxxxxxxxxxxxxxx> wrote:
> What I'm rusty on is the notion of Turing-completeness. I might be
> demonstrating my own ignorance here, but I'm wondering if somebody could
> provide a simple example of a stylesheet that's just impossible to figure
> out whether it co-validates.

Forget about Turing for a moment. Consider the following stylesheet
structure:

- Compute a Boolean attribute of the input tree.
- Use a certain template only if the attribute holds.
- The template code produces correct results only if the attribute holds.

The problem is that the checker needs to convert from "the attribute
holds" - which it can figure out - to what this means in terms of the input
document. This is difficult (impossible in the general case).

For example, the attribute might be "date X is not a Saturday", using the
standard Gregorian calendar (not a pretty code, but doable directly in
XSLT). The invoked template reads in formatted calendars - say as tables,
with one  row per week. It assumes that the date "X + 1" is the next cell of
the same row as the date "X". A bit far fetched, admittedly, but you get the
idea.

I have no idea how common such a scenario is in practice. What's certain is
that an XSLT stylesheet validation tool would make a good thesis for someone
:-)

Have fun,

    Oren Ben-Kiki



 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.