How to extend element defined in the external schema?

I'm a newbie in the XSD development and have some problems with extending XSLT 2.0 XML Schema.

Target Schema must extend XSLT elements with new children and attributes.

External Schema:

For example target Schema must extend xsl:template by adding child element a:related-resources. xsl:template defined in XSLT 2.0 Schema as:

<xs:element name="template" substitutionGroup="xsl:declaration"> <xs:complexType> <xs:complexContent mixed="true"> <xs:extension base="xsl:versioned-element-type"> <xs:sequence> <xs:element ref="xsl:param" minOccurs="0" maxOccurs="unbounded"/> <xs:group ref="xsl:sequence-constructor-group" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="match" type="xsl:pattern"/> <xs:attribute name="priority" type="xs:decimal"/> <xs:attribute name="mode" type="xsl:modes"/> <xs:attribute name="name" type="xsl:QName"/> <xs:attribute name="as" type="xsl:sequence-type" default="item()*"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element>

I think, what I can use xs:redefine for my target Schema, but xsl:template definition has built-in xs:complexType and I cann't see any way to extend it with new children.

Category:xslt Views:0 Time:2011-05-25
Tags: xslt xsd

Related post

Copyright (C), All Rights Reserved.

processed in 0.124 (s). 11 q(s)