Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] XHTML elements in Schema

From: XML Patterns <xmlpatterns@-----------.--->
To:
Date: 3/1/2004 5:42:00 PM
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: [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>
>>
>>
>>    
>>
>
>-----------------------------------------------------------------
>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.


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