OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] XHTML elements in Schema

[ Lists Home | Date Index | Thread Index ]
  • To: "Reiff-Marganiec, Dr S." <srm13@leicester.ac.uk>,<xml-dev@lists.xml.org>
  • Subject: RE: [xml-dev] XHTML elements in Schema
  • From: "Dare Obasanjo" <dareo@microsoft.com>
  • Date: Mon, 1 Mar 2004 09:13:42 -0800
  • Thread-index: AcP/rs2qmQfOzM+XS5apzygPNv02CQAANdEA
  • Thread-topic: [xml-dev] XHTML elements in Schema

The simple solution is to use 

 <xs:any processContents="lax" namespace="http://www.w3.org/1999/xhtml"; 
    minOccurs="0" maxOccurs="unbounded" /> 

The more complex solution is to reinvent the schema for XHTML or create
a subset of it.  

--
PITHY WORDS OF WISDOM 
If you want to recapture your youth, cut off his allowance. 

This posting is provided "AS IS" with no warranties, and confers no
rights.  

> -----Original Message-----
> From: Reiff-Marganiec, Dr S. [mailto:srm13@leicester.ac.uk] 
> Sent: Monday, March 01, 2004 9:01 AM
> To: xml-dev@lists.xml.org
> Subject: [xml-dev] XHTML elements in Schema
> 
> Hi,
> 
> I am writing an XML schema that is supposed to constraint the 
> format of xml files that form a basis for web pages. However, 
> there is one place where I would like to give people the 
> chance to include html-code in the xml. How can I achieve 
> this without having to rewrite the xhtml schema? And then, 
> how do I use the resulting schema in XML?
> 
> Maybe I can even restrict what xhtml users can use (e.g. only 
> what is allowed inside body?).
> 
> thanks
> S
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org 
> <http://www.xml.org>, an initiative of OASIS 
> <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
> 
> 




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS