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

RE: Types and Context

  • From: Jonathan Borden <jborden@m...>
  • To: Jeni Tennison <mail@j...>
  • Date: Tue, 22 May 2001 09:05:52 -0400

RE: Types and Context
Jeni Tennison wrote:
>
> Hi Jonathan,
>
> > As I've said, consider the 'this:person' QName a convenient
> > shorthand for a pattern "mother|father" sort of like:
> >
> >         <xsl:template match="&this.person;">
> >                 ...
> >         </xsl:template>
> >
> > so, true, one needs to edit the pattern for maintainance sake, but
> > similarly one needs to edit the schema.
>
> Yes.  If you use an entity then you have to edit the stylesheet and
> the schema; if you have a type-checking mechanism, you only have to
> edit the schema.  My point is that as an XSLT application developer, I
> could write a stylesheet that people would not have to touch even if
> they extended/amended the schema.
>

actually no. the entities can be defined in an external DTD subset. only
this would need to be edited to add an element to the 'this.person' pattern,
but this is only an example to demonstate the ability to do this with XML
1.0.

To be clear about this, what I have suggested can be done _today_ with
todays tools. There is no need for XSLT/XPath 2.0. True, an extension XSLT
function would be very helpful, but that hardly ought be a complete version
increment on XPath itself.

-Jonathan


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-2011 All Rights Reserved.