src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/writer/TXWContentHandler.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
     1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/writer/TXWContentHandler.java	Thu Apr 04 19:05:24 2013 -0700
     1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/writer/TXWContentHandler.java	Tue Apr 09 14:51:13 2013 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -64,7 +64,10 @@
    1.11              for(int i = 0; i < atts.getLength(); i++)  {
    1.12                  String auri = atts.getURI(i);
    1.13                  if ("http://www.w3.org/2000/xmlns/".equals(auri)) {
    1.14 -                    txw._namespace(atts.getValue(i),atts.getLocalName(i));
    1.15 +                    if ("xmlns".equals(atts.getLocalName(i)))
    1.16 +                        txw._namespace(atts.getValue(i), "");
    1.17 +                    else
    1.18 +                        txw._namespace(atts.getValue(i),atts.getLocalName(i));
    1.19                  } else {
    1.20                      if ("schemaLocation".equals(atts.getLocalName(i))
    1.21                              && "".equals(atts.getValue(i)))

mercurial