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

Re: XSLT 2.0 and XSL(-FO) 2.0


Re:  XSLT 2.0 and XSL(-FO) 2.0
Jeni Tennison wrote

> I think that a well-designed stylesheet should reference a schema that
> contains the type definitions for any types that it uses internally.
> Otherwise it's like using a named template and expecting the source
> document to provide its definition; not a wise course of action. In
> fact, given that (in some applications) you might have a compile-once,
> use-multiple-times architecture, it would be fatal to refer to a type
> for which you don't have a definition within a referenced schema.
>

Here's the situation I was thinking of.  You have worked with another party
who sends you documents according to a schema, but once the process is
working the schema location isn't included anymore to prevent validation of
every instance, which you have learned takes too long, or because the schema
isn't always available (sometimes you work off-line and can't connect to the
schema's location), but you still need to run transformations for some good
reason.  You have confidence that the documents are valid.

This isn't uncommon today with DTDs, and I suppose it will happen with X-xxx
2.0 when schemas come into play.  With DTDs, you have the problem of
defaulted and fixed attributes being missing, but they are often (usually?)
not used.  With XML schemas, you hve the problem that if the schema is
missing, the types are missing too.

Cheers,

Tom P




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.