Hi,
I am having some difficulties with XML entities. All I want is to use
this task to rewrite a few XML files and expand the entities. I got this
working without any problems using the task:
<xmltask
source="a.xml"
dest="c.xml"
expandEntityReferences="true"
encoding="UTF-8"
indent="true" />
where a.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root [
<!ENTITY b SYSTEM ".\b.xml">
]>
<root>
&b;
</root>
If I reference this build file from another build file, it fails:
<ant antfile="ant/buildforms.xml" useNativeBasedir="true" />
Presumably because &b; is defined in a.xml using a relative path.
Surely this should be relative to the XML file itself and not the build
file? I have turned on useNativeBasedir, surely useNativeBasedir should
prevent this from being an issue? It seems that when using a relative
path to define an entity it always looks relative to the basedir of the
highest build file, not the current basedir or the XML file in question
- is this the correct behaviour?
thanks!
james
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Xmltask-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xmltask-users