Subject: XML to XML transformation and Entities.
From: c p <bugs75il@xxxxxxxxx>
Date: Thu, 3 Mar 2005 07:52:00 -0800 (PST)
|
Hello everyone,
I am doing XML to XML conversion using XSLT. In the
newly transformed XML I need to include some entity
declarations. Something along these lines:
--------------------------------------------------
<!DOCTYPE info SYSTEM "my.dtd"
[
<!ENTITY % images.ent SYSTEM "images.ent">
%images.ent;
]>
--------------------------------------------------
Couple of questions:
1. Is there a way for me to figure out via XSL or
perhaps the Xalan/Xerces to find out if the source XML
has any existing declarations?
2. Is there a xslt element/function that will allow me
to assign the entity files to the new XML? I know I
can do something like <xsl:output
doctype-system="my.dtd"/>. But 2 questions with that
route: a. How do I get the "info" attribute from my
code snippet above? b. How do I include the entity
file(s) with this option?
I know I can do it using <xsl:text
disable-output-escaping> and then just writing the
whole declaration myself. Is that a good way to do
this?
Thanks,
C
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|