diff options
-rw-r--r-- | org/madore/damlengine/Unparser.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/org/madore/damlengine/Unparser.java b/org/madore/damlengine/Unparser.java index 0eeec00..87945c6 100644 --- a/org/madore/damlengine/Unparser.java +++ b/org/madore/damlengine/Unparser.java @@ -76,8 +76,11 @@ public final class Unparser { Node n2; for ( int i=0 ; (n2=attrs.item(i)) != null ; i++ ) { Attr attr = (Attr)n2; - out.write(" "+attr.getName()+"=\""+quote(attr.getValue())+"\""); - + String aname = attr.getName(); + out.write(" "+aname+"=\""+quote(attr.getValue())+"\""); + if ( aname.equals("xml:lang") + && elt.getNamespaceURI().equals(DamlEngine.XHTML_NS) ) + out.write(" lang=\""+quote(attr.getValue())+"\""); } } if ( ! elt.hasChildNodes() && ( qname.equals("br") || qname.equals("hr") |