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

Fw: Splitting XSL

Subject: Fw: Splitting XSL
From: "Oren Ben-Kiki" <oren@xxxxxxxxxxxxx>
Date: Wed, 10 Feb 1999 11:04:53 +0200
xsl verifier
From: David Carlisle <davidc@xxxxxxxxx> wrote:
>You can't really use DTD for a general XSL can you?
>You'd need a different DTD for each result namespace as the elements of
>the result tree appear within the templates.


I also thought so. But it turns out there's a solution.

Assume for a moment that the XST stylesheet writer has limited himself to
using <xsl:element> and <xsl:attribute>, never writing <FOO BAR="BLOOP">
directly. I claim that it is possible to write a DTD which covers all such
stylesheets. Agreed?

Now, how hard is it to convert an XSL stylesheet which doesn't obey this
restriction into one which does? Not hard at all, it turns out. It would be
a simple SAX filter, for example. Or you could write an XSL stylesheet which
does that :-)

So, combining the two, you could easily write an XSL verifier which would
verify _any_ XSL stylesheet under two DTDs.

>But yes being able to verify that valid input will aways produce valid
>output would be nice (but likely to get harder to do as more features
>are added to the language)


This point was made several times in discussion of particular features, such
as scripting. Of course, partial verification is better then none. Also,
adding some directives to the verifier - "believe me that the script
function 'foo' always returns a valid 'bar' element" - would help.

Share & Enjoy,

    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.