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

RE: Validating stylesheet


validate xslt
At 1/24/03 09:13 AM, Michael Kay wrote:
> > I need to validate XSLT document. How can I do that using
> > either DTD or XML Schema?
>
>Why would you want to validate an XSLT document using a DTD or XML
>Schema, when you can do the job much more thoroughly with an XSLT
>processor?

Because XSLT stylesheets are XML documents, some people feel (or are told 
as company policy) that they have to edit them using the company standard 
XML editor. (This was, after all, once considered one of the benefits of 
stylesheets being in XML!) This may be something like Epic, which requires 
the use of a DTD.

Adding the entity declaration

   <!ENTITY % result-elements "">

to the top of the DTD shown in Appendix C of the XSLT Rec 
(http://www.w3.org/TR/xslt#dtd) will work. The result-elements entity is 
there to allow for the use of literal result elements in the stylesheet; if 
you leave it empty, your stylesheet will have to add all new elements using 
the xsl:element instruction.



Bob DuCharme        www.snee.com/bob             <bob@
snee.com>  see http://www.snee.com/bob/xsltquickly for
info on book "XSLT Quickly" from Manning Publications.
(NOTE: bobdc e-mail address used only for mailing
lists; please send private e-mail to bob@)


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.