![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: XSD schemas and HTML >Thread Next - Re: XSD schemas and HTML Re: XSD schemas and HTMLTo: NULL Date: 8/1/2005 8:01:00 AM Unfortunately, with XSD set to: <xs:element name="Description" minOccurs="0"> <xs:complexType mixed="true"> <xs:sequence> <xs:any namespace="http://www.w3.org/1999/xhtml" processContents="lax" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="ReadFromDB" type="xs:boolean" use="required"/> <xs:attribute name="id" type="xs:integer" use="required"/> </xs:complexType> </xs:element> the validator in XMLSpy won't let me have the following XML: <Description ReadFromDB="true" id="8">I have read the following. I confirm the following: <ol xmlns="http://www.w3.org/1999/xhtml"> <li xmlns="http://www.w3.org/1999/xhtml">No Exception: OR</li> <li xmlns="http://www.w3.org/1999/xhtml">Exception:</li> </ol> Details of changes/adjustments: <p xmlns="http://www.w3.org/1999/xhtml"></p> Please document the following:<br xmlns="http://www.w3.org/1999/xhtml"/> It won't let me have the above p tags. I can't have a second ol or ul element either!<br xmlns="http://www.w3.org/1999/xhtml"/> Please help! </Description> "Martin Honnen" wrote: > > > Patrick wrote: > > > Many Thanks, but how could I alter the XSD to allow the following example XML > > instance (i.e. multiple tags)?: > > > > <!-----------------------Start of test.xml-----------------------> > > <?xml version="1.0" encoding="UTF-8"?> > > <FormDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:noNamespaceSchemaLocation="Test.xsd"> > > <FormName FormTypeAttrib="XX">test</FormName> > > <Description> > > <p>can i have more than one of these tags</p> > > <p>like this second p tag here?</p> > > can i also have a few br tags formatted either like this: <br/> > > or <br></br>? > > </Description> > > </FormDefinition> > > You could use > > <Description> > <p xmlns="http://www.w3.org/1999/xhtml">can i have more than one of > these tags</p> > <p xmlns="http://www.w3.org/1999/xhtml">like this second p tag here?</p> > can i also have a few br tags formatted either like this: <br > xmlns="http://www.w3.org/1999/xhtml"/> > or <br xmlns="http://www.w3.org/1999/xhtml"></br>? > </Description> > > if the schema says > > <xs:element name="Description"> > <xs:complexType mixed="true"> > <xs:sequence> > <xs:any processContents="lax" > maxOccurs="unbounded" > namespace="http://www.w3.org/1999/xhtml" /> > </xs:sequence> > </xs:complexType> > </xs:element> > > > -- > > Martin Honnen --- MVP XML > http://JavaScript.FAQTs.com/ > | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
