RE: Which elements in mixed="true"?

Hi Georige,

Thanks for your thoughts.

Is there any point in giving the <xs:any> a namespace constraint to the
xhtml schema, and set processContents to "strict"?


--
Thomas 

>-----Original Message-----
>From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
>Behalf Of George Cristian Bina
>Sent: 19. august 2004 13:15
>To: Thomas Solbjør
>Cc: xmlschema-dev@w3.org
>Subject: Re: Which elements in mixed="true"?
>
>
>Hi Thomas,
>
>If the mixed attribute is true then the text nodes inside an element
>will be ignored when performing validation, the remaining element
>children will be checked against the content model. What elements may go
>inside an element is controlled by the content model for that element.
>
>XML Schema provides support for wildcard models and you can control the
>validation using the processContents attribute.
>
>For instance:
>
><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>	<xs:element name="test">
>		<xs:complexType mixed="true">
>			<xs:choice minOccurs="0" maxOccurs="unbounded">
>				<xs:any processContents="skip"/>
>			</xs:choice>
>		</xs:complexType>
>	</xs:element>
></xs:schema>
>
>will allow to have any elements and text inside the test element even if
>those elements are not declared in the the schema.
>
>For more details about wildcards see
>http://www.w3.org/TR/xmlschema-1/#Wildcards
>
>Hope that helps,
>George
>-----------------------------------------------
>George Cristian Bina
><oXygen/> XML Editor & XSLT Editor/Debugger
>http://www.oxygenxml.com
>
>
>Thomas Solbjør wrote:
>> Hi,
>>
>> Does the XML Instance document support elements within an element with:
>> mixed="true"?
>>
>> I'm thinking about formatting elements such as "<b>", "<h1>" etc.
>>
>> Do these elements have to be declared in the Schema or are they natively
>> supported through the "mixed" attribute?
>>
>> --
>> Thomas
>>
>>

Received on Thursday, 19 August 2004 12:23:08 UTC