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

XSLT, XHTML, and default attribute values [somewhat OT

Subject: XSLT, XHTML, and default attribute values [somewhat OT]
From: Joseph Dane <jdane@xxxxxxxxxx>
Date: Fri, 10 Sep 2004 13:45:07 -1000
xslt xhtml
Greetings -

Say I'm working with XHTML, which I intend to process somehow in
various ways (including XSLT, to make this somewhat on-topic) and I
include an appropriate DOCTYPE decl at the head of the source file.

A consequence of this is that default attribute values get added to
the tree before my processor has a chance operate on it.  So now I've
either got to remove the default attribute values, which seems
ridiculous, or leave them in and send them explicitly to my clients,
which is pointless since they are, after all, defaults.

This happens even if I've explicitly disabled validation.

I can work around this by not using the XHTML DOCTYPE decl.  This
means I've got to supply at least my own internal subset containing
any entities I might want to use, which is a hassle.  Seems wrong,
since the source is in fact XHTML.

So, what am I missing here?

-- 

joe

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.