Skip to content

Commit

Permalink
Don't try and fix xml: namespaced attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby White committed Nov 23, 2007
1 parent 8a3a8aa commit 313c6fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dom/m_dom_dom.f90
Original file line number Diff line number Diff line change
Expand Up @@ -10873,6 +10873,8 @@ subroutine normalizeDocument(doc, ex)
attr => item(attrs, i)
if (getNamespaceURI(attr)=="http://www.w3.org/2000/xmlns/") then
cycle ! We already worried about it above.
elseif (getNamespaceURI(attr)=="http://www.w3.org/XML/1998/namespace") then
cycle ! We dont have to declare these
elseif (getNamespaceURI(attr)/="") then
! This is a namespaced attribute
if (getPrefix(attr)=="" &
Expand Down Expand Up @@ -11212,6 +11214,8 @@ recursive subroutine namespaceFixup(this, deep, ex)
attr => item(attrs, i)
if (getNamespaceURI(attr)=="http://www.w3.org/2000/xmlns/") then
cycle ! We already worried about it above.
elseif (getNamespaceURI(attr)=="http://www.w3.org/XML/1998/namespace") then
cycle ! We dont have to declare these
elseif (getNamespaceURI(attr)/="") then
! This is a namespaced attribute
if (getPrefix(attr)=="" &
Expand Down
2 changes: 2 additions & 0 deletions dom/m_dom_namespaces.m4
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ define(`TOHW_m_dom_namespaceFixup', `'`
attr => item(attrs, i)
if (getNamespaceURI(attr)=="http://www.w3.org/2000/xmlns/") then
cycle ! We already worried about it above.
elseif (getNamespaceURI(attr)=="http://www.w3.org/XML/1998/namespace") then
cycle ! We dont have to declare these
elseif (getNamespaceURI(attr)/="") then
! This is a namespaced attribute
if (getPrefix(attr)=="" &
Expand Down

0 comments on commit 313c6fb

Please sign in to comment.