XPath expression in test568

Hi there,

in test568, there is the following XPath expression:
  $_ioprocessors/scxml/location/text()

Considering the draft, the XML structure at $_ioprocessors is supposed to be e.g.:
    <data id="_ioprocessors">
      <processor name="http://www.w3.org/TR/scxml/#BasicHTTPEventProcessor">
        <location>http://example.com/scxml-http/12345</location>
      </processor>
      <processor name="http://www.w3.org/TR/scxml/#SCXMLEventProcessor">
        <location/>
      </processor>
    </data>

I cannot see how the above xpath expression will fetch anything from this XML document and propose to replace it by:
  $_ioprocessors/processor[@name='scxml']/location/text()

Is there some XPath magic or anything else I missed or is this just an error in the test?

Best regards
Stefan

Received on Friday, 12 April 2013 13:21:19 UTC