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

RE: XSLT, XHTML, and default attribute values [somewha

Subject: RE: XSLT, XHTML, and default attribute values [somewhat OT]
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Tue, 14 Sep 2004 14:28:04 +0100
entity resolver mozilla
> > Sure, but the processor must still fetch the defaulted
> values whether
> > it validates the content or not, otherwise it is
> potentially leaving
> > out data.
>
> but that's what the xml spec allows them to do. (Mozilla for
> instance never fetches any external dtd file except those
> that have copies installed into mozilla's own directory tree.
> So if you default attribute values, mozilla doesn't usually
> see the defaults.

Are you sure?  Even if Mozilla allows it, is it still this case?  Don't
get me wrong, I think defaulted values in DTDs are awful (a weird mix of
content and validation), but I've never had any luck ignoring them using
Xerces in Java without implementing a custom entity resolver.  It's
possible Mozilla implements its own custom entity resolver in the event
it cannot reach a referenced DTD, giving the appearance it has ignored
the defaulted values.  Either way, I'm speculating wildly here :)

cheers
andrew

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.