[xml] Parameter entities ?


does libxml fully support parameter entities ? It doesn't looks like so ...
is there any explanation ?

By parameter entity I mean things like that :

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE vide SYSTEM "test.dtd" [
<!ENTITY % debian "INCLUDE">
<!ENTITY % caldera "IGNORE">
<!ENTITY % redhat "IGNORE">
<![%debian[ Debian blabla ]]>
<![%caldera[ Caldera blabla ]]>
<![%redhat[ Redhat blabla ]]>

This file when run through xmllint complains about the <![...]]> because
it's not a valid element. :)

Ultimately I'd even need to be able to force by command line (to xsltproc
or xmllint) one of those entities to INCLUDE in order to do a kind of
conditionnal processing... (and by default all those entities would be
set to IGNORE).

Raphaël Hertzog -+- http://strasbourg.linuxfr.org/~raphael/
Le bouche à oreille du Net : http://www.beetell.com
Naviguez sans se fatiguer à chercher : http://www.deenoo.com
Formation Linux et logiciel libre : http://www.logidee.com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]