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

RE: mystery #3: rendering embedded HTML

Subject: RE: mystery #3: rendering embedded HTML
From: "Oleg Tkachenko" <olegt@xxxxxxxxxxxxx>
Date: Sat, 13 Apr 2002 20:07:20 +0200
envelope.dtd download
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Gary 
> Lawrence Murphy

> Valid HTML is not necessarily valid XML.  For example: <p> and <br>
> and as regular use of Tidy shows, the fixups are not always automatic;
> valid and displayable HTML can contain severe ambiguities.  
You can try to resolve those ambiguities at input step, I know that means additional task for user, but that's worthwhile one anyway imho. Alternatively you can use d-o-e as people pointed out, just make sure it works in your environment, because it's optional feature.

> What's more, if DTD validation of the envelope were required (and it
> is for data integrity across the transport and because xsl document()
> validation in xalan cannot be turned off) would I not need all
> possible XHMTL DTDs in the XML envelope DTD to accommodate all
> possible variations of that one text block?
I'm sure validation can be turned off, but anyway, both DTD and XML Schema have facilities for extending content model. In DTD you can declare <!ELEMENT data ANY> and in schema you have even more precise control by <xs:any> instruction:
<element name="htmlExample">
	<complexType>
		<sequence>
			<any namespace="http://www.w3.org/1999/xhtml"
				minOccurs="1" maxOccurs="unbounded"
				processContents="skip"/>
		</sequence> 
	</complexType>
</element>
 
---
Oleg Tkachenko,
Multiconn International, Israel 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.