RE: mystery #3: rendering embedded HTML
> 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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format