Menu

#8 attr name="xmlns" does not work on Mac

open
nobody
None
5
2007-02-12
2007-02-12
Lars
No

The following jelly snippet does not work on Mac:

<ant:xmltask source="${file}" dest="${file}">
<ant:attr path="/*[1]" attr="xmlns" value="${namespace}"/>
</ant:xmltask>

It works if I set another attribute than xmlns, and it works on Windows.

Discussion

  • Brian Agnew

    Brian Agnew - 2007-02-14

    Logged In: YES
    user_id=521055
    Originator: NO

    Can you confirm your Java versions, please ? I get different behaviour on 1.4 vs. 1.5 Java, and can replicate on a Linux machine. Can you clarify what you mean by 'not working', btw ?

     
  • Lars

    Lars - 2007-02-14

    Logged In: YES
    user_id=1504630
    Originator: YES

    I am using Java 1.5.

    The error is that the generated attribute value becomes empty, but only when the attribute name is "xmlns".

     

Log in to post a comment.

MongoDB Logo MongoDB