[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XML to XML transformation and Entities.

Subject: XML to XML transformation and Entities.
From: c p <bugs75il@xxxxxxxxx>
Date: Thu, 3 Mar 2005 07:52:00 -0800 (PST)
xsl xml to xml
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 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.