commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Incze Lajos <>
Subject Re: [Jelly] Proposal new xml tag xml:entity
Date Mon, 03 Feb 2003 14:36:55 GMT
On Mon, Feb 03, 2003 at 09:49:04AM +0100, Martin van den Bemt wrote:
> So maybe there should be an xml:text tag to get this handled (don't use
> xslt myself though) ?
I think it's better to have a <jsl:text> tag that accepts the
disable-output-escaping="yes" attribute. You don't need any special
xml tag just output an <entity name="copy"/> tag to the processing
chain (the xml taglib will output it transparentely), catch it in
a rule and use the jsl:text tag for it.

One of my major headache right now is that (Don't want to give you
bad tips, that in a document:

<?xml version="1.0"?>
<!ENTITY x "y">

the dom4j linrary will output (just something like what you want)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE a><a>&x;</a>

in a simple read-in/write-out processing (e.g.:

 SAXReader xmlReader = new SAXReader();
Document doc =[0]);
XMLWriter writer = new XMLWriter(System.out);

which is not well-formed, so my processing pipe breaks at this point.
At any "creative" solution you 'll find yourself similar problems.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message