<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ns1="http://ns1.org"
      xmlns:ns2="http://ns2.org">
  <head>
    <title>Multiple attributes with same local name</title>
    <style>
      [*|nsattr="1"] { color: green }
      [*|nsattr="2"] { text-decoration: underline }
      [|nsattr] { color: red }
      [nsattr] { text-decoration: none }
    </style>
  </head>
  <body>
    <div ns1:nsattr="1" ns2:nsattr="2">This text should be green and underlined.</div>
  </body>
</html>
