Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - xs:any vs. xs:element ref for including external schemas [Thread Next] RE: any vs. xs:element ref for including external schemasTo: "'Pete Cordell'" <petexmldev@--------------.--->, <xmlschema-dev@--.---> Date: 6/8/2007 12:28:00 AM > I've been chatting to someone on a separate list, and they > want to include whole XHTML documents with their instances > (e.g. start with <xhtml>...). > > The choices seem to be: > > <xs:any namespace="http://www.w3.org/1999/xhtml"/> > > but this allows any global element from the XHTML namespace. > > Or you can do: > > <xs:element xmlns:xhtml="http://www.w3.org/1999/xhtml" > ref="xhtml:xthml"/> > > This only allows the <xhtml> node. > > The downside of the latter ... It seems to me that one option says "allow an XHTML document here" and the other says "allow an XHTML fragment here", and you should use the option that describes which of these you want to do. You said that "they" want to include whole XHTML documents, and that suggests the xs:element option is the right answer for them. Michael Kay http://www.saxonica.com/ From ht@i... Fri Jun 08 10:46:06 2007 Received: from maggie. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
