Headings: XML vs. XSL

John E. Simpson simpson at polaris.net
Tue Jul 6 20:42:28 BST 1999

At 02:02 PM 7/6/1999 -0400, John Martin wrote:
>Would I code my DTD [actually, your document!] as
>Or would it be better/more efficient to code it as:
>and add the heading in with XSL.

It's kind of a toss-up, I think. One thing to consider, though, is that
your first choice will work as is (w/out XSL) with CSS1- and
partial-CSS2-compliant browsers which don't yet support CSS's
generated-text feature. The first choice also makes it easier to customize
headings which might vary by document instance; whether that's an issue
depends on your application.

John E. Simpson          | It's no disgrace t'be poor, 
simpson at polaris.net      | but it might as well be.
                         |            -- "Kin" Hubbard

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)

More information about the Xml-dev mailing list