Author Login
Post Reply
<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@(protected)]
>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 "¨" >
>...
>...
>]>
>
><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 "¨" >
>...
>...
>]>
>
><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@(protected)
>For additional commands, e-mail: user-help@(protected)
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)