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

Re: Type substitution vs. element substitution (akasubstitutio

  • From: Farrukh Najmi <farrukh@w...>
  • To: Michael Kay <mike@s...>
  • Date: Thu, 27 Nov 2008 22:36:43 -0500

Re:  Type substitution vs. element substitution (akasubstitutio
Michael Kay wrote:
>> I would like to support variable content in certain elements 
>> of my schema based on the elements belonging to a common type 
>> hierarchy. I want to make sure that the approach I take is:
>>
>>     
...
>>     * Well suited for processing instance documents by XSLT such that
>>       adding new types to the variable content hierarchy does not
>>       require modifying the XSLT for processing the common elements and
>>       attributes of the variable content base type
>>
>>     
> XSLT 2.0 with schema-awareness can handle both type hierarchies and
> substitution groups. For example you can match all elements in the
> substitution group of event using
>
> <xsl:template match="schema-element(event)">
>
> and you can match all elements of type event-type using
>
> <xsl:template match="element(*, event-type)">
>
> and of course in both cases you can match any name at any level of the
> hierarchy.
>   

On XSLT support... Am I correct that element substitution will not work 
well unless XSLT processor is schema aware but type substitution will? 
AFIK, there are *NO* open source, royalty free schema aware XSLT 
processors available. It seems that this would make type substitution a 
better fit for open source, royalty free non-schema-aware XSLT 
processors available.

-- 
Regards,
Farrukh Najmi

Web: http://www.wellfleetsoftware.com




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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