Sorry. Forgor to copy the mailing list :-(
Brian Agnew wrote:
Hi -
Thx for the feedback below. I think I need to run a test on whether
the below causes more harm than good. I'd prefer to not put more
configuration options in XMLTask, but fear it may be necessary.
Hopefully next week I'll be able to take a look at this and determine
what's going on. In the meantime can you mail me an example build.xml,
illustrating the problem, together with appropriate source XML
documents ?
Will keep you posted,
Brian
Kuehlert, Burkhard wrote:
Hi,
our products are based on j2ee, and for different customers we have
different DeploymentDeskriptors.
So, if we add an ejb-ref in a project, we must do it for the
Sun-DD(ejb-jar.xml), Websphere(...xmi) and JBoss(jboss.xml), and we
want to use xmltask.
I had problems with each file, cause of loading external DTDs, or
namespaces, but my current problem is this:
I want to insert an ejbRefBindings to the Websphere Deskriptor, and
the snippet looks like this:
<ejbRefBindings xmi:id="EjbRefBinding_1053346050283"
jndiName="IfxClientConnector">
<bindingEjbRef xmi:type="common:EJBLocalRef"
href="META-INF/ejb-jar.xml#EJBLocalRef_1051520213817"/>
</ejbRefBindings>
When I do this, I get the error:
org.xml.sax.SAXParseException: The prefix "xmi" for attribute
"xmi:id" is not bound.
But when I change the following in
com.oopsconsultancy.xmltask.InsertAction
to false:
{
// why do I do this ? Causes problems with
// Pete Hale and namespace-scoped insertions
dfactory.setNamespaceAware(*false*);
}
everything works fine.
Is it possible to set this value via ant: <xmltask
namespaceAware="false"..>
or is there a different solution?
Many thanks
Burkhard
-----------------------------------------------------------
WINCOR NIXDORF International GmbH
Sitz der Gesellschaft: Paderborn
Registergericht Paderborn HRB 3507
Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach,
Jürgen Wilde
Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller
Steuernummer: 339/5884/0031
Ust-ID Nr.: DE812927716
WEEE-Reg.-Nr. DE44477193
------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users
--
Brian Agnew http://www.oopsconsultancy.com
OOPS Consultancy Ltd brian @ oopsconsultancy.com
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012
--
Brian Agnew http://www.oopsconsultancy.com
OOPS Consultancy Ltd brian @ oopsconsultancy.com
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users