This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: SGML vs XML
- From: Dan York <dan_york at mitel dot com>
- To: Trevor Jenkins <trevor dot jenkins at suneidesis dot com>
- Cc: fyl2xp1 <vnhu38f93 at subdimension dot com>,DocBook applications <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 09 Jul 2002 12:21:27 -0400
- Subject: Re: DOCBOOK-APPS: SGML vs XML
- Organization: Mitel Networks Corporation
- References: <002201c2226f$b892ae10$0f11bc93@htrtttt><Pine.LNX.4.44.0207030933210.9698-100000@suneidesis>
Trevor,
> There are "features" of SGML that have not been incorporated into XML. The
> one I miss most and that keeps me using SGML is INCLUDE/IGNORE marked
> sectons. Especially as the status keyword can be the replacement of an
> entity reference. Although there are techniques for achieving this with
> XML (by hacking XSLT code to evaluate element attribtues) I believe that
> the SGML feature is safer and preferable. It is clear in the SGML document
> instance what will/wont be processed; there is no such clarity with an XML
> document instance.
As a replacement for this functionality, I would suggest you take a look
at the "profiling" that has been included in the last several releases
of the XSLT stylesheets. Jirka has a document about it at:
http://docbook.sourceforge.net/release/xsl/current/doc/tools/profiling.html
and I have a few slides showing its usage in the tutorial I did at OLS at:
http://www.lodestar2.com/people/dyork/talks/2002/ols/docbook-tutorial/frames/section07.html
This allows me to very simply and easily do what I used to do with
INCLUDE/IGNORE.
Dan
--
Dan York, Product Line Manager, SME Server and ServiceLink
Mitel Networks Corporation dan_york@mitel.com
Ph: +1-613-592-2122 Cell: +1-613-263-4312 Fax: +1-613-592-1175
350 Legget Drive, Ottawa, ON, K2K 2W7 Canada
http://www.mitel.com/sme/ and http://www.e-smith.com/