ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: xinclude for ant?
Date Fri, 22 Jun 2007 04:26:32 GMT
On Wed, 20 Jun 2007, Peter Reilly <peter.kitt.reilly@gmail.com> wrote:
> On 6/20/07, Dominique Devienne <ddevienne@gmail.com> wrote:
>> On 6/20/07, Peter Reilly <peter.kitt.reilly@gmail.com> wrote:
>> > I have just realized that xinclude can be enabled easily using
>> > JAXPUtils:
>> > +            nsParserFactory.setXIncludeAware(true);
>>
>> Cool, but the Javadoc says @since 1.5, so you'd have to use
>> reflection.
> 
> No problem.  Alternatively, I think that we can use the feature
> setting method to enable it:
> http://xerces.apache.org/xerces2-j/features.html#xinclude Peter

I don't think we should use the feature since other parsers are likely
to not recognize it.  +1 for reflection.

>> > I can see problems :- the inclusion is at the xml level and ant
>> > does not know about the included file (ant does not get SAX
>> > events on about the inclusion), so that any errors in the
>> > included file will be reported at the includer line. This means
>> > that it is not user friendly.
>>
>> I don't think that's a big deal for whoever uses XInclude.

+1.  If you use xinclude you should be able to deal with it.  We
should document the issue, though.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message