Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Type substitution vs. element substitution (aka

From: Farrukh Najmi <farrukh@-----------------.--->
To: Michael Kay <mike@--------.--->
Date: 11/28/2008 3:37:00 AM
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



_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent