[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: DOCBOOK-APPS: Re: conditionalization of XML
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Some more thoughts about this issue...
1. Entities should be expanded. If users process
<!DOCTYPE book PUBLIC "..." "..." [
<!ENTITY chap1.xml SYSTEM "chap1.xml">
]>
<book>
...
&chap1;
</book>
They're going to expect the profiling to apply to the content of
&chap1;, not just the wrapper script. That means this code needs to be
implemented as an XML process, not a character-stream process. And really,
I think it needs to be done at the parser level, not in something like flex.
Though I suppose you could implement a specialty XML parser with flex.
2. The downside of expanding entities is that is going to become  .
Is this really a problem? You're not going to edit the profiled content,
right?
3. OTOH, I really do want this to happen before validation. That way I can write
<chapter>
<title condition="print">Print Title</title>
<title condition="online">Online Title</title>
and have the right thing happen.
4. That means that losing the <!DOCTYPE declaration is unfortunate.
But that could be fixed, I think, with a specialty XML parser.
5. You know, I really want this at the URI level.
<!DOCTYPE book PUBLIC "..." "...">
<book>
...
<xi:include href="http://localhost/profile/path/to/document.xml?condition='html'"/>
</book>
Now we're getting somewhere!
Be seeing you,
norm
- --
Norman Walsh <ndw@nwalsh.com> | A life, admirable at first sight,
http://www.oasis-open.org/docbook/ | may have cost so much in imposed
Chair, DocBook Technical Committee | liabilities, chores and
| self-abasement, that, brilliant
| though it appears, it cannot be
| considered other than a failure.
| Another, which seems to have
| misfired, is in reality a
| triumphant success, because it has
| cost so little.--Henry De
| Montherlant
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>
iD8DBQE9pyHROyltUcwYWjsRAqndAJ9lifJUxLzqGz8ZMT2n1iOwS/6FmACcCypU
xGLL1VdNjrtH69EqcgZ2RZY=
=/95Z
-----END PGP SIGNATURE-----
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC