W3C home > Mailing lists > Public > www-voice@w3.org > October to December 2011

CCXML IR Assertion 610 -- xml:base

From: Dean, Kyle <kdean@Holly-connects.com>
Date: Sun, 16 Oct 2011 21:58:15 -0500
To: "www-voice@w3.org" <www-voice@w3.org>
Message-ID: <6E034866-D6EA-49B7-B4ED-D7F9D513A810@west.com>
I think that the xml:base specified in Assertion 610 of test 6_1 in the CCXML Implementation Report test is not correct.


The document in question looks like this:
http://example.org/ir-cc/6_1/child_9.ccxml

  <?xml version="1.0" encoding="UTF-8"?>
  <ccxml xmlns:conf="http://www.w3.org/2005/ccxml-conformance"
         version="1.0"
         xml:base="./testbase">

    ...

    <eventprocessor>
      <transition event="ccxml.loaded">
        ...
        <fetch next="'ccxml_ok.ccxml'"/>
      </transition>
      ...

Notice that the xml:base attribute is a relative URI.
This means that the base URI for the document has to be resolved against the document URI.
So the base URI is now

   http://example.org/ir-cc/6_1/testbase


But the URI in the fetch element is relative too
   ccxml_ok.ccxml

So the fetch URI is resolved against the base URI, which gives

   http://example.org/ir-cc/6_1/ccxml_ok.ccxml

But I think the test author expected

   http://example.org/ir-cc/6_1/testbase/ccxml_ok.ccxml

because that's where the ccxml_ok.ccxml document is located.


The xml:base should have been specified as "testbase/" instead of "./testbase"
Received on Monday, 17 October 2011 02:57:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 17 October 2011 02:58:05 GMT