[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XHTML elements in Schema


xhtml in xml schema
I have a design pattern for this that I call the Catch-All Element, See: 
http://www.xmlpatterns.com/CatchAllElementMain.shtml

-- 

Toivo Lainevool
http://www.XMLPatterns.com - Develop effective DTDs and XML Schema 
documents for your XML using structural design patterns.


Dare Obasanjo wrote:

>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@l...] 
>>Sent: Monday, March 01, 2004 9:01 AM
>>To: xml-dev@l...
>>Subject:  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>
>>
>>
>>    
>>
>
>-----------------------------------------------------------------
>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>
>
>  
>


-- 

Toivo Lainevool
http://www.XMLPatterns.com - Develop effective DTDs and XML Schema documents for your XML using structural design patterns.







PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.