Re: [xsl] XHTML result validation using xsl:type

Subject: Re: [xsl] XHTML result validation using xsl:type
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Thu, 31 Jan 2008 17:22:02 +0000
On 31/01/2008, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> The XHTML schema defines the html element like this:
>
> <xs:element name="html">
> <xs:complexType>
> <xs:sequence>
> <xs:element ref="head"/>
> <xs:element ref="body"/>
> </xs:sequence>
> <xs:attributeGroup ref="i18n"/>
> <xs:attribute name="id" type="xs:ID"/>
> </xs:complexType>
> </xs:element>
>
> So there is a global element declaration named "html", but its type is
> anonymous.
>
> You can only use xsl:type="htmlType" when there is a type definition in the
> schema of the form
>
> <xs:complexType name="htmlType">

ahhh, thanks.




-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread