Subject:include path for external entities Author:Stephen Daly Date:04 Apr 2007 11:25 AM
I have XML documents that include external entity files like this:
<!DOCTYPE Views SYSTEM 'Design_any.dtd' [
<!ENTITY % xxx_base_ent SYSTEM '..\common\xxx_base.ent'>
%xxx_base_ent;
]>
I'm running this through xsltproc which reads in and resolves the entities. I like to replace the hardcoded relative path somehow, either through an environment variable or passing in resource path. Does XML support this and is there some xslt processor that provides this?
Search for OASIS Catalogs on Google.
Stylus Studio supports them.
There is an Apache Commons project that also can be used to allow
other code to work with them.