ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: <import> entities ?!
Date Fri, 05 Feb 2010 09:59:04 GMT
<import> is not a XML function it is an Ant task.
The imported content is parsed by Ant and evaluated as Ant 'things'.

XML entities are available only in the specified file itself.

So use external defined entities and refer to that file (instead of <import>)
http://ant.apache.org/faq.html#xml-entity-include


Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
>Gesendet: Freitag, 5. Februar 2010 10:41
>An: 'Ant Users List'
>Betreff: <import> entities ?!
>
>
>Hi,
>
>want to use some entities, works with =
>
><?xml version="1.0"?>
>
><!DOCTYPE project [
><!ENTITY uml    "&#168;" >
>...
>...
>]>
>
><project ...>
>[..]
>
>Now i want to put it in my commons.xml and use <import>
>i put it in commons.xml before <project> =
>
><?xml version="1.0"?>
>
><!DOCTYPE project [
><!ENTITY uml    "&#168;" >
>...
>...
>]>
>
><project name="commons_web">
>...
>
>but it didn't work.
>What's the correct way to use entities with import ?
>Any hints ?
>
>
>Regards, Gilbert
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message