Right, I'm using the built-in identity-tranformation support...I'm
pretty much just performing SAX serialization as recommended in the
Xerces FAQ

http://xerces.apache.org/xerces2-j/faq-general.html#faq-6

I realized an easy answer to my third question which is to invert the
use of quotes to

  <!ENTITY wan-gw
     "<systemitem class='systemname'>wan-gw</systemitem>"              >

Which is okay to hack my way forward for the moment, but not a solution
for handling xml out of my control.

Now I get errors like

    White space is required after "<!ENTITY" in the entity declaration.

Because the external DTD has

    <!ENTITY % dbnotn SYSTEM
"http://www.oasis-open.org/docbook/xml/configerror.txt";>

and the serialization turns it into:

    <!ENTITY %dbnotn PUBLIC "-//OASIS//ENTITIES DocBook Notations
V4.2//EN" >

I don't know if this could be one of the bugs you're alluding to, or if
my ignorance of the fine points of entities is leading me to misunderstand.

I'm going to see if I have any better luck with the gnu XmlWriter class.

Eric


I 



[EMAIL PROTECTED] wrote:
>
> >  <!ENTITY wan-gw
> >     '<systemitem class="systemname">wan-gw</systemitem>'              >
> >
> > coming out of the serialization it looks like
> >
> > <!ENTITY wan-gw "<systemitem class="systemname">wan-gw</systemitem>">
>
> Uhm. An XSLT transformation, even an indentity transformation, really
> shouldn't be preserving entity declarations at all; they aren't part
> of the XPath/XSLT data model, so they should be expanded on their way
> through.
>
> I suspect you're trying to use the built-in identity-tranformation
> support, rather than a real identity stylesheet. Right? If so, I'm not
> sure we ever fixed the known bugs in that code...
>
>
> ______________________________________
> "... Three things see no end: A loop with exit code done wrong,
> A semaphore untested, And the change that comes along. ..."
> -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish
> (http://www.ovff.org/pegasus/songs/threes-rev-11.html)
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to