Re: Override a type in a schema
Michael Kay <[email protected]>
| Newsgroups | gmane.text.xml.schema.devel |
|---|---|
| Message-ID | <[email protected]> |
Given a suitable API, you can validate the element against any type you like. One such suitable API is the XSLT instruction: <xsl:copy-of select="theirs:foo" type="my:type"/> Michael Kay Saxonica On 07/03/2012 17:10, Andrew Welch wrote: > Given an element: > > <theirs:foo> > > and an XSD for the 'theirs' namespace defining foo as xs:string, how > can I override that definition with my own type? One way is: > > <theirs:foo xsi:type="my_type_for_foo"> > > Is there a 1.0 way to do it without using xsi:type ? > > > thanks >