[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XML to XML transformation and Entities.
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|