Hi, I am using Sculptor to generate an XML file using an External Entity (see http://www.xml.com/pub/a/98/08/xmlqna1.html#EXTENT).
This is what the Hibernate file should look like: <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" [ <!ENTITY UserInformation SYSTEM "classpath://com/foo/hibernate/UserInformation.xml" > ]> <hibernate-mapping> <class...> ... &UserInformation; ... </class> </hibernate-mapping> I could not get this to generate correctly. After much pain, I finally figured out that there was nothing wrong with my template code. The problem is with the XML formatter. The default org.openarchitectureware.xpand2.output.XmlBeautifier eats both the ENTITY declaration and the entity reference. Then I tried the Fornax org.fornax.utilities.formatter.xml.XmlFormatter. I do like it better than the oAW one because the XML looks much cleaner, and it leaves the ENTITY declaration. However, it replaces the entity reference with <!-- DUMMY -->! So that still doesn't work. I tried to not use a formatter at all, but the XML that is generated has spaces in front of <?xml>, which is invalid. Is there a setting or configuration that I can use to tell the formatter to leave my external entity declaration and reference alone? I know this is unusual syntax, but it makes the most sense for our situation. Thanks, Polly -- View this message in context: http://www.nabble.com/XML-Formatter-problems-with-External-Entities-tp19762674s17564p19762674.html Sent from the Fornax-Platform mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Fornax-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fornax-developer
