Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSD schemas and HTML

From: questions@---------.------
To: NULL
Date: 8/2/2005 8:10:00 AM
Try the following which demo the problem, I also use XMLSpy">XMLSpy Version 2004 rel 
2 (on WinXP Pro SP1)

----------------------------Start of 
xmlxsdProblem.xsd----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="FormDefinition">
		<xs:complexType>
			<xs:sequence>
				<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>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
----------------------------End of 
xmlxsdProblem.xsd----------------------------

----------------------------Start of 
xmlxsdProblem.xml----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<FormDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:noNamespaceSchemaLocation="xmlxsdProblem.xsd">
<Description ReadFromDB="true" id="1">
Something before the first UL trags
	<ul xmlns="http://www.w3.org/1999/xhtml">
			<li xmlns="http://www.w3.org/1999/xhtml">aaaaa</li>
			<li xmlns="http://www.w3.org/1999/xhtml">bbbbbbbb</li>
			<li xmlns="http://www.w3.org/1999/xhtml">ccccc</li>
			<li xmlns="http://www.w3.org/1999/xhtml">ddddddd</li>
			<li xmlns="http://www.w3.org/1999/xhtml">eeeeeeee</li>
			<li xmlns="http://www.w3.org/1999/xhtml">ffffff</li>
		</ul>
*****SOS********
*****Some after the first UL tags.  I can't have any more BR tags! nor can I 
have any more UL or OL tags*****	<br xmlns="http://www.w3.org/1999/xhtml"/>
	<ol xmlns="http://www.w3.org/1999/xhtml">
			<li xmlns="http://www.w3.org/1999/xhtml">aaaaa</li>
			<li xmlns="http://www.w3.org/1999/xhtml">bbbbbbbb</li>
			<li xmlns="http://www.w3.org/1999/xhtml">ccccc</li>
			<li xmlns="http://www.w3.org/1999/xhtml">ddddddd</li>
			<li xmlns="http://www.w3.org/1999/xhtml">eeeeeeee</li>
			<li xmlns="http://www.w3.org/1999/xhtml">ffffff</li>
		</ol>
</Description>
</FormDefinition>
----------------------------End of 
xmlxsdProblem.xml----------------------------


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent