html xs

Simple question:
How should a tag like should be defined?
I’ve tried to use extension of xs:string, but i should provide an opening and closing tag. And if i doesn’t use extension can’t use attributes.

Thanks.

Hi

I’m pretty sure, there is an XML Schema for XHTML available on the internet, but anyway, the declaration for the element should be something like

<xs:element name=“img”>
xs:complexType
<xs:attribute name=“src” type=“xs:anyURI”/>

</xs:complexType>
</xs:element>

Best rgeards
Uli