Another abandoned server code base... this is kind of an ancestor of taskrambler.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1961 lines
107 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://www.w3.org/2003/g/data-view">
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>GRDDL Test Cases</title>
<link href="http://www.w3.org/2001/sw/grddl-wg/td/aboutTests.xsl"
rel="transformation" />
<meta name="RCS-Id" content="$Id: Overview.html,v 1.10 2007/09/11 14:26:07 jules Exp $"/>
<style type="text/css" xml:space="preserve">
a.grddlCoverage:link {
color: black;
border-bottom: 1px black thin;
font-size: x-small;
font-style: italic;
font-weight: bold;
}
a.grddlCoverage:visited {
color: black;
font-size: x-small;
font-style: italic;
font-weight: bold;
}
a.grddlCoverage:hover {
background: gray;
text-decoration: none;
color: black;
font-size: x-small;
font-style: italic;
font-weight: bold;
}
a.grddlCoverage:active {
color: black;
font-size: x-small;
}
.example {
margin-left:auto;
margin-right:auto;
padding-top:0.5em;
padding-bottom:0.5em;
width:85%;
border-top:thin dashed black;
border-bottom:thin dashed black;
}
.approved-test {
/*background-color: #FFE3BF;*/
font-style:italic;
}
pre
{
margin: auto;
background-color: #FFC;
padding: 1em;
border-color: #FC3;
border-width: 1px;
border-style: solid;
white-space: pre;
overflow:auto;
text-align: left;
/*font-size: 10px;*/
}
pre strong {
color: #F00;
font-weight: bold;
}
li.NetworkedTest {
list-style-type: circle;
}
.maximal-result p {
font-style:italic;
/*border-left: thin dotted black*/
}
</style>
<link href="http://www.w3.org/StyleSheets/TR/base" rel="stylesheet"
type="text/css" />
<link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-REC"/>
</head>
<body>
<div class="head"><a href="http://www.w3.org/" shape="rect"><img alt="W3C"
height="48" src="http://www.w3.org/Icons/w3c_home" width="72" /> </a>
<h1 id="title">GRDDL Test Cases</h1>
<h2>W3C Recommendation 11 September 2007</h2>
<dl>
<dt>This version:</dt>
<dd><a href="http://www.w3.org/TR/2007/REC-grddl-tests-20070911/">http://www.w3.org/TR/2007/REC-grddl-tests-20070911/</a></dd>
<dt>Latest version:</dt>
<dd><a href="http://www.w3.org/TR/grddl-tests/"
shape="rect">http://www.w3.org/TR/grddl-tests/</a></dd>
<dt>Previous versions</dt>
<dd><a href="http://www.w3.org/TR/2007/PR-grddl-tests-20070716/">http://www.w3.org/TR/2007/PR-grddl-tests-20070716/</a></dd>
<dt>Editor:</dt>
<dd>Chimezie Ogbuji, Cleveland Clinic Foundation, &lt;<a
href="mailto:ogbujic@ccf.org"
shape="rect">ogbujic@ccf.org</a>&gt;</dd>
<dt>Authors:</dt>
<dd>see <a href="#acknowledgements"
shape="rect">Acknowledgments</a></dd>
</dl>
<p>Please refer to the <a
href="http://www.w3.org/2001/sw/grddl-wg/grddl-errata"><strong>errata</strong></a>
for this document, which may include some normative corrections.</p>
<p>See also <a href=
"http://www.w3.org/2003/03/Translations/byTechnology?technology=grddl-tests"
><strong>translations</strong></a>.</p>
<p class="copyright"><a
href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
shape="rect">Copyright</a> © 2006-2007 <a href="http://www.w3.org/"
shape="rect"><acronym
title="World Wide Web Consortium">W3C</acronym></a><sup>®</sup> (<a
href="http://www.csail.mit.edu/" shape="rect"><acronym
title="Massachusetts Institute of Technology">MIT</acronym></a>, <a
href="http://www.ercim.org/" shape="rect"><acronym
title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>,
<a href="http://www.keio.ac.jp/" shape="rect">Keio</a>), All Rights
Reserved. W3C <a
href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer"
shape="rect">liability</a>, <a
href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks"
shape="rect">trademark</a> and <a
href="http://www.w3.org/Consortium/Legal/copyright-documents"
shape="rect">document use</a> rules apply.</p></div>
<hr />
<div><h2 id="abstract">Abstract</h2> <p>This document describes and
includes test cases for software agents that extract RDF from XML source
documents by following the set of mechanisms outlined in the Gleaning
Resource Description from Dialects of Language <a
href="#ref-GRDDL">[GRDDL]</a> specification. They demonstrate the expected
behavior of a <a href="http://www.w3.org/TR/grddl/#sec_agt"
shape="rect">GRDDL-aware agent</a> by specifying one (or more) RDF graph
serializations which are the GRDDL results associated with a single source
document.</p></div>
<h2 id="sotd">Status of This Document</h2>
<!--- NOTE to self: add an extra dash '-' for the resolution link below: _-_6_ -->
<p><em>This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href="http://www.w3.org/TR/">W3C technical reports index</a> at http://www.w3.org/TR/.</em></p>
<p>This document has been reviewed by W3C Members, by software developers, and by other W3C groups and interested parties, and is endorsed by the Director as a W3C Recommendation. It is a stable document and may be used as reference material or cited from another document. W3C's role in making the Recommendation is to draw attention to the specification and to promote its widespread deployment. This enhances the functionality and interoperability of the Web.</p>
<p>This September 11th 2007 release of the GRDDL Test Cases is a W3C Recommendation by the <a href="http://www.w3.org/2001/sw/grddl-wg/">W3C
GRDDL Working Group</a> (part of the <a
href="http://www.w3.org/2001/sw/">Semantic Web Activity</a>). It has been widely reviewed and contributes to the requirements documented in <a href="http://www.w3.org/2006/07/grddl-charter.html">GRDDL Charter</a>; The tests within have been well implemented by a variety of software.</p>
<p>Please send comments about this document to <a href="mailto:public-grddl-comments@w3.org">public-grddl-comments@w3.org</a> (with <a href="http://lists.w3.org/Archives/Public/public-grddl-comments/">public archive</a>). A <a href="#changelog">log of changes</a> is maintained for the convenience of editors and reviewers.</p>
<p>A <a href="#xinclude">pair</a> of tests within <a href="#multiple-infosets">contribute</a> to addressing Web Architecture issue: <a href="http://www.w3.org/2001/tag/issues.html?type=1#xmlFunctions-34">xmlFunctions-34</a> and the notion of an <a href="http://www.w3.org/2001/tag/doc/elabInfoset.html">elaborated infoset</a></p>
<p>In June 6th, 2007 the Working Group <a href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Jun/att-0046/SV_MEETING_TITLE_--_6_Jun_2007.htm#item04">resolved</a> to postpone <a href="http://www.w3.org/2001/sw/grddl-wg/issues#issue-faithful-infoset">issue-faithful-infoset</a> in anticipation of ongoing dialog about the issue and the XML Processing Model Working Groups work to answer questions about <em>transformation signaling</em> and a default processing model.</p>
<p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 W3C Patent Policy</a>. W3C maintains a <a rel="disclosure" href="http://www.w3.org/2004/01/pp-impl/39407/status">public list of any patent disclosures</a> made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section 6 of the W3C Patent Policy</a>. </p>
<div><!-- ____________________________________________ CONTENTS _________________________________________________ --><div>
<h2 id="toc">Table of Contents</h2> <ul>
<li><a href="#introduction" shape="rect">Introduction</a></li>
<li><a href="#deliverables" shape="rect">Deliverables</a></li>
<li><a href="#test-format" shape="rect">Test Manifest Format</a></li>
<li><a href="#doc-test-format" shape="rect">Documenting Test
Coverage</a></li>
<li><a href="#testft" shape="rect">Using the Test Driver</a></li>
<li><a href="#earl-reporting" shape="rect">EARL Reporting</a></li>
<li><a href="#protocol-tracing" shape="rect">Protocol Tracing</a></li>
<li><a href="#grddl-library" shape="rect">GRDDL Transform
Library</a></li>
<li><a href="#policy" shape="rect">Local Policies, Faithful Rendition,
and Conformance</a></li>
<li><a href="#multiple-output" shape="rect">Tests with Multiple GRDDL
Results</a> <ul>
<li><a href="#multiple-infosets" shape="rect">Testing Faithful
Infosets</a></li>
<li><a href="#multiple-representations" shape="rect">Testing for
Multiple Representations</a></li>
<li><a href="#maximal-result" shape="rect">Testing for Maximal
Result</a></li>
</ul></li>
<li><a href="#naming-scheme" shape="rect">Test Naming
Convention</a></li>
<li><a href="#normative" shape="rect">Normative Tests</a> <ul>
<li><a href="#localized-tests" shape="rect">Localized
Tests</a></li>
<li><a href="#ns-absolute-loc-tests" shape="rect">Namespace
Documents and Absolute Locations</a></li>
<li><a href="#library-tests" shape="rect">Library Tests</a></li>
<li><a href="#ambiguous-infoset" shape="rect">Ambiguous Infosets,
Representations, and Traversals</a></li>
</ul></li>
<li><a href="#primer-tests" shape="rect">Primer Material</a></li>
<li><a href="#informative" shape="rect">Informative Tests</a> <ul>
<li><a href="#security-tests" shape="rect">Security Tests</a></li>
</ul></li>
</ul> </div><h2 id="appendix-ref"><a href="#appendices">Appendices</a></h2><ul>
<li><a href="#test_coverage" shape="rect">A. Test Coverage</a></li>
<li><a href="#references" shape="rect">B. References</a></li>
<li><a href="#acknowledgements" shape="rect">C.
Acknowledgements</a></li>
<li><a href="#changelog" shape="rect">D. Change Log</a></li>
</ul><p></p><h2 id="introduction">Introduction</h2> <p>A set of test
cases is provided as part of the definition of <a href="#ref-GRDDL"
shape="rect">[GRDDL]</a>. This document presents those test cases. They
are intended to provide examples for, and clarification of, the normative
behavior of a GRDDL-aware agent. They should be used for testing the
conformance of GRDDL-aware agents. The <a href="#normative">normative</a> tests <a href="#test_coverage">cover</a> behavior
expected of a GRDDL-aware agent.&nbsp; The <a href="#informative">informative</a> tests demonstrate
other permitted behavior with respect to the issues resolved by the
Working Group. This document itself has (as a GRDDL result) a manifest
describing the test cases in RDF. For convenience, serializations of the
GRDDL result are available as <a href="http://www.w3.org/2001/sw/grddl-wg/td/grddl-tests.rdf"
shape="rect">RDF/XML</a> and <a href="http://www.w3.org/2001/sw/grddl-wg/td/grddl-tests.n3"
shape="rect">Turtle</a>.</p>
<p>This document and its files serve as a framework to <a href="http://www.w3.org/2001/sw/grddl-wg/td/test_results">test</a> implementations of the GRDDL <a href="http://www.w3.org/TR/grddl/">specification</a>. It contains <a href="#doc-test-format">assertions</a> demonstrating which of the GRDDL rules are relevant for each test contained within. In this way, it formally exercises (via <a href="#earl-reporting">EARL</a>) the mechanisms exhibited by <em>GRDDL-aware Agents</em> within a <em>Semantic Web</em> of XML Documents.</p>
</div>
<div><h2 id="deliverables">Deliverables</h2> The deliverables included as
part of the test case collection are: <ul>
<li>A recommendation track document which normatively includes the
tests</li>
<li>A manifest RDF/XML document describing the collection of
tests</li>
<li>An example driver for use with testing a particular
implementation</li>
<li>A zip <a href="grddl-tests.zip" shape="rect">archive</a>
including: <ul>
<li>The input and output(s) for local test</li>
<li>The manifest file</li>
<li>The test driver</li>
</ul></li>
</ul></div>
<p>Note: the zip archive does not include tests which require network
connectivity in order to properly calculate their GRDDL results. In addition and for convenience, two manifest files are included which only
contain the normative tests: <a href="http://www.w3.org/2001/sw/grddl-wg/td/grddl-tests-normative.n3">grddl-tests-normative.n3</a> (expressed in <a href="#ref-TURTLE">Turtle</a>) and <a href="http://www.w3.org/2001/sw/grddl-wg/td/grddl-tests-normative.rdf">grddl-tests-normative.rdf</a> (expressed in <a href="#ref-RDF_Syntax">RDF/XML</a>)</p>
<div><h2 id="test-format">Test Manifest Format</h2> <p>This test
collection uses an RDF vocabulary for manifests developed for the <a
href="http://www.w3.org/TR/rdf-testcases/" shape="rect">RDF Test Cases</a>
Recommendation. A GRDDL-aware agent can extract the test collection and
automatically test compliance by attempting to reproduce the expected
GRDDL result(s) associated with each test case. Some input documents have
multiple output documents, see <a href="#multiple-output"
shape="rect">below</a></p></div>
<h2 id="doc-test-format">Documenting Test Coverage</h2>
<p>Each test starts with: a title (in <b>bold</b>), links to the input and
output documents, and a list of terms which indicate which GRDDL <a
href="http://www.w3.org/TR/grddl/spec_rules">rules</a> are exercised by
the test. Each term links to a section in the <em>Test Coverage</em> <a
href="#test_coverage">appendix</a> which has additional information about
the rule definition and the other tests which exercise that particular
rule. </p>
<p>The test manifest includes statements which identify the rules exercised by each test. For every test, there will be a
assertion between the test and a URI associated with the rule, using the following property URI:</p>
<b>http://www.w3.org/2001/sw/grddl-wg/td/grddl-test-vocabulary#exercisesRule</b>
<p>The rule URIs correpond with anchors within the GRDDL specification document and are of the form:</p>
<p>http://www.w3.org/TR/grddl/#rule_<strong>RULE_IDENTIFIER</strong></p>
<div><h2 id="testft">Using the Test Driver</h2> <p>We provide <a
href="http://www.w3.org/2001/sw/grddl-wg/td/testft.py" shape="rect">testft.py</a>, a test driver, written in <a
href="http://www.python.org" shape="rect">Python</a> and based on <a
href="http://rdflib.net/2006/10/15/rdflib-2.3.3.tar.gz"
shape="rect">rdflib 2.3.3</a>. Run it a la:</p> <pre xml:space="preserve">$ python testft.py --run your_grddl_impl testlist1.rdf &gt;earl_out.rdf
All tests were passed!</pre> <p></p> <p>It has options for --debug and such;
invoke it with no arguments (or with --help) for details:</p> <pre
xml:space="preserve">
Options:
-r, --run path to a GRDDL implementation to use to process the
source document (checking results)
-u, --update path to a GRDDL Implementation to use to process the
source document
--tester The URI of an agent associated with the EARL test assertions.
A BNode is used if none is given
--project The URI of the EARL 'subject' (the implementation being tested).
A BNode is used if none is given
--local A boolean flag (false by default) which indicates whether to run only the local tests
</pre> <p>The tests do not require the use of this driver</p></div>
<div><h2 id="earl-reporting">EARL Reporting</h2> <p>In addition to writing
various diagnostic messages to <em>STDERR</em>, the test harness writes
additional RDF data to <em>STDOUT</em>: an <a href="#ref-EARL"
shape="rect">[EARL]</a> test assertion about each test it runs.</p> <p>To
tell it about the person running the tests and the software project being
tested, point it to a tester (a URI in a <a href="#ref-FOAF"
shape="rect">[FOAF]</a> RDF graph) and a test subject (a URI in a <a
href="#ref-DOAP" shape="rect">[DOAP]</a> RDF graph).</p></div>
<div><h2 id="protocol-tracing">Protocol Tracing</h2> <p>We find <a
href="http://hathawaymix.org/Software/TCPWatch" shape="rect">TCPWatch</a>
useful for debugging <a href="#ref-RFC2616" shape="rect">[HTTP]</a>
protocol interactions. If you start TCPWatch like so:</p> <pre
xml:space="preserve">$ python tcpwatch.py -p 6543 &amp;</pre> <p>then you
can use it as a proxy:</p> <pre xml:space="preserve">$ http_proxy=http://127.0.0.1:6543 python testft.py
--run your_grddl_impl testharness.rdf</pre></div>
<h2 id="grddl-library">GRDDL Transform Library</h2>
<p>A <a href="http://www.w3.org/2001/sw/grddl-wg/library"
shape="rect">library</a> of standard transforms is available for
widespread use by authors</p>
<h2 id="policy">Local Policies, Faithful Rendition, and Conformance</h2>
<p>GRDDL explains that an author of a source XML document
with references to GRDDL <a href="http://www.w3.org/TR/grddl/#txforms">transformations</a> states
that these transformations will provide a <a href="http://www.w3.org/TR/grddl/#sec_rend" shape="rect">Faithful
Rendition</a> of the information expressed in the document. The
specification also grants a GRDDL-aware agent the <a
href="http://www.w3.org/TR/2007/WD-grddl-20070302/#sec_agt">license</a> to
make a determination of whether or not to apply a particular
transformation guided by user interaction, a local security policy, or the
agent's capabilities. For example, a GRDDL-aware agent may have a
security policy that prevents it from accessing GRDDL transformations
located in untrusted domain names or it may be unable to apply
transformations given in a language it does not support, and so it may
be unable to produce the faithful rendition.</p>
<p>Furthermore, in addition to being GRDDL-aware, an agent may feature optional capabilities such as
the ability to locate a schema via mechanisms defined in the W3C XML Schema specification
<a href="#ref-XMLSchema">[XMLSCHEMA]</a>. Schemas identified this way
can become proxies for namespace documents that would normally be identified
by <a href="#testing_nstx">GRDDL</a>, although it is possible
that the result of applying the transformations identified in these schemas will not be a faithful rendition.</p>
<p><a id="test-policy">However</a>, in defining these
tests it was assumed that the GRDDL-aware agent being tested is using a
security policy which does <b>not</b> prevent it from applying
transformations identified in each test, supports XSLT 1.0, and does
not rely on any capabilities outside those defined in the GRDDL Specification.
Such an agent should produce the GRDDL result associated with each normative test,
except as specified immediately below.</p>
<h2 id="multiple-output">Tests with Multiple GRDDL Results</h2>
<div><img alt="multiple GRDDL results" src="multiple-grddl-results.png"
title="Multiple GRDDL results" /></div>
<p>Certain tests have multiple GRDDL results as a direct consequence of <a
href="http://www.w3.org/TR/grddl/#issue-faithful-infoset"
shape="rect">Faithful Infoset</a> considerations, information resources
with <a href="http://www.w3.org/TR/webarch/#pr-describe-resource"
shape="rect">multiple representations</a>, and seperate GRDDL mechanisms
which produce distinct GRDDL results.</p>
<p>Tests of these kind can be considered as groups of <b>N</b> where
<b>N</b> is the number of valid GRDDL results for the common input
document.</p>
<h3 id="multiple-infosets">Testing Faithful Infosets</h3>
<p>In section <a
href="http://www.w3.org/TR/grddl/#txforms">6. GRDDL
Transformations</a> of <a href="#ref-GRDDL">[GRDDL]</a>, the question is
raised about how a Faithful Rendition of an XML Document's infoset (a <a
href="http://www.w3.org/TR/grddl/#issue-faithful-infoset"
shape="rect">Faithful Infoset</a>) can be assured. GRDDL is silent about
whether or not any XInclude <a href="#ref-XInclude">[XINCLUDE]</a>
processing occurs before an XPath data model is created for use with GRDDL
and any nominated transformations. GRDDL suggests the use of XProc <a
href="#ref-XProc">[XPROC]</a> where more complex or sophisticated
transformation are required. XProc's XInclude component (see: <a
href="http://www.w3.org/TR/xproc/#c.xinclude">1.6 XInclude</a>) can be
used in an XML pipeline to explicitly specify the application of XInclude
semantics against an XML infoset <a href="#ref-XMLInfoset">[XML
INFOSET]</a>.</p>
<p>In the absence of an explicit XProc test, <a
href="#xinclude">Testing GRDDL when XInclude processing is enabled</a> and
<a href="#noxinclude">Testing GRDDL when XInclude processing is
disabled</a> are examples of tests which share the same source document,
but have different XPath data models depending on whether any XInclude
processing occurs. For such tests, a GRDDL-aware agent should output at
least one of the GRDDL results associated with the single source
document.</p>
<p>The tests manifest includes a symmetric property <a
href="#ref-OWL">[OWL]</a>
(<b>http://www.w3.org/2001/sw/grddl-wg/td/grddl-test-vocabulary#alternative</b>)
asserted between them. A GRDDL-aware agent running the tests can take this
into consideration.</p>
<h3 id="multiple-representations">Testing for Multiple
Representations</h3>
<p>Information resources can also have <a
href="http://www.w3.org/TR/webarch/#pr-describe-resource"
shape="rect">multiple representations</a> in response to <a
href="http://www.w3.org/TR/webarch/#def-coneg">content negotiation</a>. In
addition to the GRDDL results associated with each representation a test
for the <em>maximal result</em> is included: the GRDDL result which
consists of the <a
href="http://www.w3.org/TR/2004/REC-rdf-mt-20040210/#defmerge">merge</a>
of all possible GRDDL results.</p>
<p id="voc-subsumes">Note, however, that the maximal result is not
isomorphic with the other results. To aid a test harness in determining
compliance for scenarios such as these, the tests have a property
(<b>http://www.w3.org/2001/sw/grddl-wg/td/grddl-test-vocabulary#subsumes</b>)
asserted from the test for the maximal result to the other tests in the
group. A GRDDL-aware agent running the tests can take this into
consideration.</p>
<h3 id="maximal-result">Testing for Maximal Result</h3>
<p>The remaining set of tests with multiple results are those where there
is no ambiguity with the XPath data model associated with the source
document, there is a single representation, and multiple GRDDL mechanisms
apply. In the <a href="#test-policy">absence</a> of a policy which
prevents each GRDDL result from being computed, a GRDDL-aware agent should
produce the maximal result.</p>
<div><h2 id="naming-scheme">Test Naming Convention</h2> <p>Every test has
a URI of the form:</p>
<p>http://www.w3.org/2001/sw/grddl-wg/td/grddl-tests#<b>LOCALNAME</b></p>
<p>The test collection can either be run locally (see <a
href="#localized-tests">"Localized Tests"</a>) or over a network. Certain
tests are marked as <em>requiring</em> a network connection with an open
circle as their list item marker. These tests are asserted as members of
the
<b>http://www.w3.org/2001/sw/grddl-wg/td/grddl-test-vocabulary#NetworkedTest</b>
class in the test manifest. A GRDDL-aware agent running the tests can take
this into consideration.</p> <p>The tests which require a network
connection use absolute URIs (in the test manifest) to refer to their test
material (input and output)</p>
<p>Tests which do not require a network connection use relative URIs (in
the test manifest) instead.</p></div>
<div><h2 id="normative">Normative Tests</h2> <p>Each test has an input
document and an output document. the output document is an RDF/XML
document and represents a GRDDL result of the input document.</p></div>
<h3 id="localized-tests">Localized Tests</h3>
<p>For the sake of convenience, this first set of normative tests cover
simple scenarios where neither <a
href="http://www.w3.org/TR/grddl/#ns-bind" shape="rect">namespace
documents</a> nor absolute URIs are used. Such tests can run offline
rather easily.</p>
<ul class="TestList">
<li id="xmlWithGrddlAttribute"><span><b>P3P work-alike</b></span>:
<div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xmlWithGrddlAttribute.xml">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xmlWithGrddlAttribute-output.rdf">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div><p>This test case
exercises a single GRDDL transformation that is identified using the
general XML markup from within the source document.</p> <p
class="approved-test">approval: <a
href="http://www.w3.org/2007/04/11-grddl-wg-minutes.html#action06">2007-04-11</a></p></li>
<li id="projectsSpreadsheet"><b>Get RDF from a spreadsheet</b><!--,
a la <a href="http://www.advogato.org/person/connolly/diary.html?start=22">connolly 12 May 2005</a>, <a href="http://www.mnot.net/blog/2005/08/13/excel_microformats">mnot August 13 2005</a-->:
<div> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/projects.xml">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/projects.rdf">output</a><div><a
class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div></div> <p>This test
case exercises a single GRDDL transformation that is identified using
the general XML markup from within a relatively complex source
document.</p> <p class="approved-test">approval: <a
href="http://www.w3.org/2007/04/11-grddl-wg-minutes.html#action06">2007-04-11</a></p></li>
<li id="rdfa1"><b>RDFa example</b><!-- from
<a href="http://www-sop.inria.fr/acacia/personnel/Fabien.Gandon/tmp/grddl/rdfaprimer/PrimerRDFaSection.html">GRDDL RDFa Example</a> by Fabien Sep 14, 2006-->:
<div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/rdf_sem.html">input</a>, <a
href="http://www.w3.org/2001/sw/grddl-wg/td/rdf_sem-output.rdf">output</a><div><a
class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div></div> <p>This test case
exercises a single GRDDL transformation that is identified using XHTML
markup within the source document. Note that this test case uses a
transformation for <a
href="http://www.w3.org/TR/xhtml-rdfa-primer/">RDFa</a> that reflects
the status of RDFa markup as of the development of the test case.</p> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/11-grddl-wg-minutes.html#item03">2007-04-11</a></p></li>
<li id="inline"><b>Inline transformation reference</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/inline.html">input</a>, <a
href="http://www.w3.org/2001/sw/grddl-wg/td/inline.rdf">output</a><div><a
class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div></div> <p>This test case
uses an inline GRDDL transformation reference (i.e. within an
<code>a</code> element) instead of one within a <code>link</code>
element. It also exercises the fact that the <code>rel</code> attribute
can take multiple space-separated values, and only one of them needs to
be equal to <code>transformation</code> to indicate that the resource is
in fact a GRDDL transformation.</p> <p class="approved-test">Approval:
<a
href="http://www.w3.org/2007/04/11-grddl-wg-minutes.html#item03">2007-04-11</a></p></li>
<li id="base-param"><b>Base URI: Same document reference</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/baseURI.html">input</a>, <a
href="http://www.w3.org/2001/sw/grddl-wg/td/baseURI.rdf">output</a><div><a
class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div></div> <p>The base URI
for the result document is the URI of the source document.</p> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/11-grddl-wg-minutes.html#item03">2007-04-11</a></p></li>
<li id="title_author"><b>Title / Author (from specification)</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/titleauthor.html">input</a>,
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/titleauthor-output.rdf">output</a><div><a
class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div></div> <p>See the
faithful <a href="http://www.w3.org/TR/grddl/#intro_rdf">rendition</a>
of the input document.</p> <p class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/11-grddl-wg-minutes.html#item03">2007-04-11</a></p></li>
<li id="rdfXMLDoc"><b>RDF/XML document</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/projects.rdf">input</a>, <a
href="http://www.w3.org/2001/sw/grddl-wg/td/projects.rdf">output</a>.</div><div><a
class="grddlCoverage" href="#testing_rdfxbase">rdfx-base</a></div><p>If
an information resource is represented by a conforming RDF/XML document,
then the RDF graph represented by that document is a GRDDL result of
IR.</p><p class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/att-0091/18-grddl-wg-minutes.html#item09">2007-04-18</a></p></li>
<li id="xhtmlWithGrddlProfile"><b>One transform linked from the head of
a document with only the GRDDL profile</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithGrddlProfile.html">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithGrddlProfile-output.rdf">output</a><div><a
class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div></div> <p>an XHTML file
with the GRDDL profile is interpreted by applying the transformations
included in links annotated with rel='transformation'</p> <p
class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/att-0091/18-grddl-wg-minutes.html#item09">2007-04-18</a></p></li>
<li id="xhtmlWithGrddlTransformationInBody"><b>One transform linked from
the body of a document with only the GRDDL profile</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithGrddlTransformationInBody.html">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithGrddlTransformationInBody-output.rdf">output</a><div><a
class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div></div><p>an XHTML file with
the GRDDL profile is interpreted by applying the transformations
included in links annotated with rel='transformation', including links
in the body of the document</p> <p class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/att-0091/18-grddl-wg-minutes.html#item09">2007-04-18</a></p></li>
<li id="xhtmlWithMoreThanOneProfile"><b>One transform linked from the
head of a document with several profiles, including the GRDDL
profile</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithMoreThanOneProfile.html">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithTwoTransformations-output.rdf">output</a><div><a
class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div></div> <p>An XHTML file
with the GRDDL profile present among other non GRDDL-profiles is
interpreted by applying the transformations included in links annotated
with rel='transformation'</p> <p class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li id="xhtmlWithMoreThanOneGrddlTransformation"><b>Two transformations
linked from the body of a document with the GRDDL profile</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithMoreThanOneGrddlTransformation.html">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithTwoTransformations-output.rdf">output</a><div><a
class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div></div> <p>An XHTML file
with the GRDDL profile present is interpreted by applying the
transformations included in all the links annotated with
rel='transformation' and merging the resulting RDF/XML graphs.</p> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li id="xmlWithGrddlAttributeAndNonXMLNamespaceDocument"><b>XML document
linking to its transformer through the GRDDL attribute</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xmlWithGrddlAttributeAndNonXMLNamespaceDocument.xml">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xmlWithGrddlAttributeAndNonXMLNamespaceDocument-output.rdf">output</a><div><a
class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div></div> <p>An XML file
- in this case, an SVG document - with the GRDDL attribute on the root
element; SVG's namespace document is not in an XML format, which makes
fail some implementations of GRDDL</p> <p
class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/att-0091/18-grddl-wg-minutes.html#item09">2007-04-18</a></p></li>
</ul>
<h3 id="ns-absolute-loc-tests">Namespace Documents and Absolute
Locations</h3>
<p>These tests include the use of namespace documents and absolute URIs
and are more difficult to run offline.</p>
<ul class="TestList">
<li class="NetworkedTest" id="hcard1"><b>An hcard profile</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/card.html">input</a>, <a
href="http://www.w3.org/2001/sw/grddl-wg/td/card-output.rdf">output</a><div><a
class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage" href="#testing_tlrel">grddl-profile</a>,<a
class="grddlCoverage"
href="#testing_profiletrans">other-profile</a></div></div> <p>This test
case exercises identifying GRDDL transformations using
<code>profileTransformation</code> assertions. In this case, an XHTML
document notes a profile URI to which it belongs. The profile document,
retrieved from the URI, identifies a GRDDL transformation for the
original document with a <code>profileTransformation</code> assertion in
its own GRDDL result.</p> <p class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="multiprofile"><b>2 profiles: eRDF and
hCard</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/multiprofile.html">input</a>,
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/multiprofile-output.rdf">output</a>
</div><div><a class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage" href="#testing_tlrel">grddl-profile</a>,<a
class="grddlCoverage"
href="#testing_profiletrans">other-profile</a></div> <p>This test case
exercises identifying GRDDL transformations using
<code>profileTransformation</code> assertions from the GRDDL results of
multiple XHTML profile documents.</p> <p class="approved-test">Approval:
<a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/0224.html">2007-04-25</a></p></li>
<li class="NetworkedTest" id="sq1"><b>Namespace documents and media
types 1</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/sq1.xml">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/sq1-output.rdf">output</a><div><a
class="grddlCoverage" href="#testing_nstx">ns</a>,<a
class="grddlCoverage" href="#testing_rdfxbase">rdfx-base</a></div></div>
<p>The namespace document is an RDF document served as mimetype
application/xml</p> <p class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="sq2"><b>Namespace documents and media
types 2</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/sq2.xml">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/sq2-output.rdf">output</a><div><a
class="grddlCoverage" href="#testing_nstx">ns</a>,<a
class="grddlCoverage" href="#testing_rdfxbase">rdfx-base</a></div></div>
<p>This test case exercises identifying GRDDL transformations using
<code>namespaceTransformation</code> assertions. In this case, an XML
document has a root element with a namespace URI. The namespace
document, retrieved from the URI, is an RDF/XML document (and so
contributes to its own GRDDL results) and identifies a GRDDL
transformation for the original document with a
<code>namespaceTransformation</code> assertion.</p> <p
class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/att-0091/18-grddl-wg-minutes.html#item09">2007-04-18</a></p></li>
<li class="NetworkedTest" id="card5na"><b>A variant of the <a
href="#card5n">card5n</a> test</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/card5na">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/card5n-output">output</a>
</div><div><a class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage"
href="#testing_profiletrans">other-profile</a></div> <p></p> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="card5n"><b>hcard from a 1998 review
comment on P3P</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/card5n">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/card5n-output">output</a>
</div><div><a class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage" href="#testing_tlrel">grddl-profile</a>,<a
class="grddlCoverage"
href="#testing_profiletrans">other-profile</a></div> <p></p> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="hcard"><b>A copy of the hcard profile</b>
<div><a href="http://www.w3.org/2001/sw/grddl-wg/td/hcard">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/hcard-output">output</a>
</div><div><a class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage" href="#testing_tlrel">grddl-profile</a></div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="two-transforms"><b>An XML document with
two namespace transformations</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/two-transforms">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/two-transforms-output">output</a>
</div><div><a class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage" href="#testing_nstx">ns</a></div> <p>This also has
an in-body transformation, which has not been added to the root
element.</p> <p class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/att-0091/18-grddl-wg-minutes.html#item09">2007-04-18</a></p></li>
<li class="NetworkedTest" id="three-transforms"><b>An XML document with
two namespace transformations and a transform on the root element</b>
<div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/three-transforms">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/three-transforms-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a>,<a class="grddlCoverage"
href="#testing_merge">merge</a>,<a class="grddlCoverage"
href="#testing_nstx">ns</a></div> <p>This also has an in-body
transformation on the root element.</p> <p
class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/0224.html">2007-04-25</a></p></li>
<li class="NetworkedTest" id="four-transforms"><b>An XML document with
two namespace transformations and two transforms on the root
element</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/four-transforms">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/four-transforms-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a>,<a class="grddlCoverage"
href="#testing_merge">merge</a>,<a class="grddlCoverage"
href="#testing_nstx">ns</a></div> <p>This also has two in-body
transformations on the root element.</p> <p
class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/att-0091/18-grddl-wg-minutes.html#item09">2007-04-18</a></p></li>
<li class="NetworkedTest" id="hcarda"><b>A variant of the hcard
profile</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/hcarda">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/hcard-output">output</a>
</div><div><a class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage"
href="#testing_profiletrans">other-profile</a></div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="xhtmlWithGrddlEnabledProfile"><b>Document
linking to its transformer through a GRDDL-enabled profile</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithGrddlEnabledProfile.html">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithGrddlEnabledProfile-output.rdf">output</a><div><a
class="grddlCoverage" href="#testing_tlrel">grddl-profile</a>,<a
class="grddlCoverage"
href="#testing_profiletrans">other-profile</a></div></div> <p>An XHTML
file with a profile whose interpretation through GRDDL gives a
transformation for the said XHTML file.</p> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
</ul>
<h3 id="library-tests">Library Tests</h3>
<p>The following tests are tests primarily of the <a
href="http://www.w3.org/2001/sw/grddl-wg/library">library</a> code.</p>
<ul class="TestList">
<li class="NetworkedTest" id="inline-rdf1"><b>Embedded RDF1</b>
<div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/inline-rdf1">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/embedded-rdf1-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p>a simple test for
embedded RDF.</p> <p class="approved-test">Approval: <a
href="http://www.w3.org/2007/06/27-grddl-wg-minutes.html#item02">2007-06-27</a></p></li>
<li class="NetworkedTest" id="inline-rdf2"><b>Embedded RDF2</b>
<div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/inline-rdf2">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/embedded-rdf2-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p>a test for
embedded RDF, with two blocks of RDF</p> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/06/27-grddl-wg-minutes.html#item02">2007-06-27</a></p></li>
<li class="NetworkedTest" id="inline-rdf3"><b>Embedded RDF3</b>
<div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/inline-rdf3">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/embedded-rdf3-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a>,<a class="grddlCoverage"
href="#testing_rdfxbase">rdfx-base</a></div> <p>a test for embedded RDF.
A corner case: an RDF document.</p> <p class="approved-test">Approval:
<a
href="http://www.w3.org/2007/06/27-grddl-wg-minutes.html#item02">2007-06-27</a></p></li>
<li class="NetworkedTest" id="glean-profile"><b>Glean Profile</b>
<div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/profile-with-spaces-in-rel">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/profile-with-spaces-in-rel-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div> <p>a test for glean
profile, checking the treatment of spaces in the rel attribute.</p> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="inline-rdf4"><b>Embedded RDF using a
relative xml:base</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/inline-rdf4">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/embedded-rdf4-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/06/27-grddl-wg-minutes.html#item02">2007-06-27</a></p></li>
<li class="NetworkedTest" id="inline-rdf5"><b>Embedded RDF using an
absolute xml:base</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/inline-rdf5">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/embedded-rdf5-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/06/27-grddl-wg-minutes.html#item02">2007-06-27</a></p></li>
<li class="NetworkedTest" id="inline-rdf6"><b>Embedded RDF using two
nested absolute xml:base</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/inline-rdf6">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/embedded-rdf6-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/06/27-grddl-wg-minutes.html#item02">2007-06-27</a></p></li>
<li class="NetworkedTest" id="inline-rdf8"><b>Embedded RDF using two
different xml:base on two different blocks of RDF</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/inline-rdf8">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/embedded-rdf8-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/06/27-grddl-wg-minutes.html#item02">2007-04-25</a></p></li>
<li class="NetworkedTest" id="inline-rdf9"><b>Embedded RDF using two
different xml:lang on two different blocks of RDF</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/inline-rdf9">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/embedded-rdf9-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/06/27-grddl-wg-minutes.html#item02">2007-06-27</a></p></li>
<li class="NetworkedTest" id="inline-rdf10"><b>Embedded RDF using two
different inherited xml:lang on two different blocks of RDF</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/inline-rdf10">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/embedded-rdf10-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/06/27-grddl-wg-minutes.html#item02">2007-06-27</a></p></li>
<li class="NetworkedTest" id="grddlProfileBase1"><b>An XHTML profile
using a base element</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/base/grddlProfileWithBaseElement">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/grddlProfileWithBaseElement-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div> <p>This is from the final
URI.</p> <p class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="grddlProfileBase2"><b>An XHTML profile
using a base element</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/grddlProfileWithBaseElement">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/grddlProfileWithBaseElement-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div> <p>This is from a
redirected URI.</p> <p class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="grddlProfileBase3"><b>XHTML with an XHTML
profile using a base element</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlProfileBase1">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlProfileBase1-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a>,<a class="grddlCoverage"
href="#testing_profiletrans">other-profile</a></div> <p>This shows
intended use of the profile.</p> <p class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
</ul>
<div><div> <h3 id="ambiguous-infoset">Ambiguous Infosets, Representations,
and Traversals</h3> <p>These tests help check for robustness of
implementations in the face of various odd cases.</p> <ul class="TestList">
<li class="NetworkedTest" id="loop"><b>Namepace Loop</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/loop">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/loop-output.rdf">output</a><div><a
class="grddlCoverage" href="#testing_GRDDL_transformation">xml</a>,<a
class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage" href="#testing_nstx">ns</a></div></div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li id="xinclude"><b>Testing GRDDL when XInclude processing is
enabled</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xinclude1.html">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xinclude1.rdf">output</a><div><a
class="grddlCoverage" href="#testing_GRDDL_transformation">xml</a>,<a
class="grddlCoverage" href="#testing_merge">merge</a></div></div>
<p>In this test case, the input file uses <a
href="http://www.w3.org/TR/xinclude/">XInclude</a> to reference <a
href="http://www.w3.org/2001/sw/grddl-wg/td/xinclude2.xml">xinclude2.xml</a>,
and the output has only one triple unless the XML Processor of
the GRDDL implementation supports XInclude. The output for this case
assumes that the processor <em>does</em> resolve XIncludes. This test
case (and the one that follows) exercises the Working Group's <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Feb/att-0017/31-grddl-wg-minutes-edited.html#item02">resolution</a>
regarding <em>faithful infosets</em>. In particular, the output illustrates a situation where the XML processor employed
invokes XInclude processing at a low-level and presents the expanded
<a href="http://www.w3.org/TR/xinclude/#processing">result infoset</a>
<a href="#ref-XInclude">[XINCLUDE]</a> to the higher-level application
(the GRDDL-aware agent. See: <a
href="http://www.w3.org/TR/xinclude/#rel-xlink">1.1 Relationship to
XLink</a> <a href="#ref-XInclude">[XINCLUDE]</a>).</p> <img
alt="XInclusion and GRDDL" src="xinclusion.jpg"
title="XInclusion and GRDDL" /><p class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Jun/att-0046/SV_MEETING_TITLE_--_6_Jun_2007.htm#item04">2007-04-11</a></p>
<p>This pair of tests anticipate that the resolution of TAG issue <a href="http://www.w3.org/2001/tag/issues.html?type=1#xmlFunctions-34">xmlFunctions-34</a> will provide further guidance concerning them.</p></li>
<li id="noxinclude"><b>Testing GRDDL when XInclude processing is
disabled</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xinclude1.html">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/noxinclude1.rdf">output</a><div><a
class="grddlCoverage" href="#testing_GRDDL_transformation">xml</a>,<a
class="grddlCoverage" href="#testing_merge">merge</a></div></div>
<p>This test case is an alternative to <a href="#xinclude">the
XInclude enabled test case</a>. The output for this case assumes that
the processor <em>does not</em> resolve XIncludes, which may lead to a
different GRDDL result. Note that the unexpanded infoset and its
corresponding XPath Data Model (See: <a
href="http://www.w3.org/TR/xpath#infoset">B XML Information Set
Mapping</a> <a href="#ref-XPath">[XPATH]</a>) could instead have been
presented to an XProc pipeline with an explicit XInclude component.</p>
<p class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Jun/att-0046/SV_MEETING_TITLE_--_6_Jun_2007.htm#item04">2007-04-11</a></p></li>
<li id="grddlonrdf"><b>Testing GRDDL attributes on RDF documents</b>
<div class="maximal-result"> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/grddlonrdf.rdf">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/grddlonrdf-output3.rdf">output</a><div><a
class="grddlCoverage" href="#testing_GRDDL_transformation">xml</a>,<a
class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage"
href="#testing_rdfxbase">rdfx-base</a></div></div> <p> Note that the
input is an RDF document with a GRDDL transformation, and that
according to the rules given by the <a
href="http://www.w3.org/TR/grddl/">GRDDL Specification</a>, there are
<i>three distinct and equally valid output graphs for this test</i>
for this document. This <a
href="http://www.w3.org/2001/sw/grddl-wg/td/grddlonrdf-output1.rdf">
output</a> is a graph that is merge of the graph given by the source
document with the graph given by the result of the GRDDL
transformation.</p> </div> <p class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="spaces-in-rel"><b>Spaces in rel
attribute</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/spaces-in-rel.html">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/spaces-in-rel-output.rdf">output</a>
</div><div><a class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div> <p>The rel attribute can
take multiple values.</p> <p class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="pf-pf-pf-ns"><b>Recursion 1</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/pf-pf-pf-ns-fnd">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/fnd-pf-pf-pf-ns-output">output</a>
</div><div><a class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage" href="#testing_nstx">ns</a>,<a
class="grddlCoverage" href="#testing_rdfxbase">rdfx-base</a>,<a
class="grddlCoverage"
href="#testing_profiletrans">other-profile</a></div> <p id="layering">
The layering tests, permit arbitrary nesting (up to depth 9) of HTML
profiles and XML namespaces. The general pattern is: </p> <ul>
<li>Take a string <code>$V</code> matching
<code>((ns|pf)-){0-8}</code>.</li>
<li>The document <code>ns-$Vfnd</code> is an xml document with
namespace <code>$Vfnd</code>.</li>
<li>The document <code>pf-$Vfnd</code> is an xhtml document with
profile <code>$Vfnd</code>.</li>
<li>The RDF/XML document <code>fnd</code> specifies appropriate
transformations, so that every possible stack have GRDDL results.
These are all different.</li>
<li>The output document <code>fnd-$Voutput.srdf</code> is the
correct answer.</li>
</ul> <p>An HTML document which has a profile being an HTML
document, which has a profile being an HTML document, which has a
profile being an XML document, which has an RDF namespace
document.</p> <p class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/att-0091/18-grddl-wg-minutes.html#item09">2007-04-18</a></p></li>
<li class="NetworkedTest" id="ns-ns-pf-pf"><b>Recursion 2</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/ns-ns-pf-pf-fnd">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/fnd-ns-ns-pf-pf-output">output</a>
</div><div><a class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage" href="#testing_nstx">ns</a>,<a
class="grddlCoverage" href="#testing_rdfxbase">rdfx-base</a>,<a
class="grddlCoverage"
href="#testing_profiletrans">other-profile</a></div> <p>An XML
document which has an XML namespace document, which has an HTML
namespace document, which has a profile being an HTML document, which
has a profile being an RDF document./</p> <p
class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/att-0091/18-grddl-wg-minutes.html#item09">2007-04-18</a></p></li>
<li class="NetworkedTest" id="ns-pf-ns-pf-ns"><b>Recursion 3</b>
<div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/ns-pf-ns-pf-ns-fnd">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/fnd-ns-pf-ns-pf-ns-output">output</a>
</div><div><a class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage" href="#testing_nstx">ns</a>,<a
class="grddlCoverage" href="#testing_rdfxbase">rdfx-base</a>,<a
class="grddlCoverage"
href="#testing_profiletrans">other-profile</a></div> <p>An XML
document which has an HTML namespace document, which has a profile
being an XML document, which has an HTML namespace document, which has
a profile being an XML document, which has an RDF namespace
document.</p> <p class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/att-0091/18-grddl-wg-minutes.html#item09">2007-04-18</a></p></li>
<li class="NetworkedTest" id="loopx1"><b>Namespace loop</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/loopx">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/loopx-output1">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a>,<a class="grddlCoverage"
href="#testing_merge">merge</a>,<a class="grddlCoverage"
href="#testing_nstx">ns</a></div> <p> The following four tests
demonstrate GRDDL results for a self-referencing input document.
Unlike other tests of this <a href="#maximal-result">kind</a>, the
last of these - the maximal result - is not exlusive. This reflects an
interpretation of <em>SHOULD</em> as used in section <a
href="http://www.w3.org/TR/2007/WD-grddl-20070302/#sec_agt">7.
GRDDL-Aware Agents</a> of <a href="#ref-GRDDL">[GRDDL]</a> with
regards to the computation of GRDDL results. In particular, this
interpretation and the text in the section that follows (<a
href="http://www.w3.org/TR/2007/WD-grddl-20070302/#sec">8. Security
considerations</a>) permits an implementation to only pass the first
test due to security restrictions against computing recursive GRDDL
results.</p> <p>For this particular test, an XML document is its own
namespace document, with a GRDDL transformation, specifying a
<code>namespaceTransformation</code>, which specifies a further
<code>namespaceTransformation</code>. This result is the first
possible GRDDL result. Implementations that make no allowance for such
cases may produce this result. Documents authors are advised against
having information resources whose GRDDL results depend on other GRDDL
results for the same resource.</p> <p class="approved-test">Approval:
<a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/0220.html">2007-04-25</a></p></li>
<li class="NetworkedTest" id="loopx2"><b>Namespace loop</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/loopx">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/loopx-output2">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a>,<a class="grddlCoverage"
href="#testing_merge">merge</a>,<a class="grddlCoverage"
href="#testing_nstx">ns</a></div> <p>An XML document is its own
namespace document, with grddl transformation, specifying a
<code>namespaceTransformation</code>, which specifies a further
<code>namespaceTransformation</code>. This result is the merge of the
first two possible GRDDL results. Implementations that make no special
allowance for or prohibition of such cases may produce this result.
Documents authors are advised against having information resources
whose GRDDL results depend on other GRDDL results for the same
resource.</p> <p class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/0220.html">2007-04-25</a></p></li>
<li class="NetworkedTest" id="loopx3"><b>Namespace loop</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/loopx">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/loopx-output3">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a>,<a class="grddlCoverage"
href="#testing_merge">merge</a>,<a class="grddlCoverage"
href="#testing_nstx">ns</a></div> <p>An XML document is its own
namespace document, with grddl transformation, specifying a
<code>namespaceTransformation</code>, which specifies a further
<code>namespaceTransformation</code>. This result is the merge of the
first three possible GRDDL results. Implementations that make no
special allowance for or prohibition of such cases may produce this
result. Documents authors are advised against having information
resources whose GRDDL results depend on other GRDDL results for the
same resource.</p> <p class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/0220.html">2007-04-25</a></p></li>
<li class="NetworkedTest" id="loopx"><b>Namespace loop</b> <div
class="maximal-result"><div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/loopx">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/loopx-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a>,<a class="grddlCoverage"
href="#testing_nstx">ns</a>,<a class="grddlCoverage"
href="#testing_rdfxbase">rdfx-base</a></div> <p>An XML document is its
own namespace document, with a GRDDL transformation, specifying a
<code>namespaceTransformation</code>, which specifies a further
<code>namespaceTransformation</code>. This result is the merge of all
possible GRDDL results. Documents authors are advised against having
information resources whose GRDDL results depend on other GRDDL
results for the same resource.</p> </div> <p
class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/0220.html">2007-04-25</a></p></li>
<li class="NetworkedTest" id="html-and-transformation-attr"><b>HTML
document with transformation attribute on root</b> <div> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/html-and-grddl-xform-attr">input</a>,
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/two-transforms-output">output</a>.
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a>,<a class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div> <p>Two transforms apply
to this document, following rules in both sections 2 and 4 of the
specification.</p> <p class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li id="xhtmlWithGrddlEnabledProfileAndInBodyTransform"><b>Document
linking to its transformer through a GRDDL-enabled profile, and with
in-line transformation</b> <div> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithGrddlEnabledProfileAndInBodyTransform.html">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithGrddlEnabledProfileAndInBodyTransform-output.rdf">output</a><div><a
class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage" href="#testing_tlrel">grddl-profile</a>,<a
class="grddlCoverage"
href="#testing_profiletrans">other-profile</a></div></div> <p>An XHTML
file with a profile whose interpretation through GRDDL gives a
transformation for the said XHTML file; the document also specifies
the GRDDL profile, and a transformation.</p> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li
id="xhtmlWithGrddlEnabledProfileAndADisabledInBodyTransform"><b>Document
linking to its transformer through a GRDDL-enabled profile, and with
in-line transformation</b> <div> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithGrddlEnabledProfileAndADisabledInBodyTransform.html">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithGrddlEnabledProfileAndADisabledInBodyTransform-output.rdf">output</a><div><a
class="grddlCoverage" href="#testing_tlrel">grddl-profile</a>,<a
class="grddlCoverage"
href="#testing_profiletrans">other-profile</a></div></div> <p>An XHTML
file with a profile whose interpretation through GRDDL gives a
transformation for the said XHTML file; the document also specifies a
transformation, but omits to specify the GRDDL profile.</p> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li id="grddlonrdf-xmlmediatype"><b>Testing GRDDL attributes on RDF
documents with XML media type</b> <div class="maximal-result"><div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/grddlonrdf-xmlmediatype.rdf">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/grddlonrdf-xmlmediatype-output3.rdf">output</a><div><a
class="grddlCoverage" href="#testing_GRDDL_transformation">xml</a>,<a
class="grddlCoverage" href="#testing_merge">merge</a>,<a
class="grddlCoverage"
href="#testing_rdfxbase">rdfx-base</a></div></div> <p>This test
differs from the <a href="#grddlonrdf">previous</a> example of
applying GRDDL to an RDF/XML document in that the RDF file is served
(not best practice, but rather common) as media-type
"application/xml". The <a
href="http://www.w3.org/2001/sw/grddl-wg/td/grddlonrdf-xmlmediatype-output3.rdf">
output</a> is a graph that is merge of the graph given by the source
document with the graph given by the result of the GRDDL
transformation.</p> </div> <p class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/att-0091/18-grddl-wg-minutes.html#item09">2007-04-18</a></p></li>
<li class="NetworkedTest" id="langconneg1"><b>Content Negotiation with
GRDDL (1 of 2)</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/conneg.html">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/conneg-en.rdf">output</a><div><a
class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div></div> <p>This test
exists to bring attention to developers to issues of <i>content
negotiation</i>, in particular, content negotiation over language as
<a
href="http://www.w3.org/QA/2006/02/content_negotiation.html">described</a>
and implemented by W3C QA. There <i>are two valid resulting GRDDL
results</i> of running this GRDDL transformation depending on what
language the GRDDL-aware agent uses, and an implementation of a
GRDDL-aware agent only needs to retrieve the one that is appropriate
for its HTTP header request. This result follows from retrieving a
English version of the HTML representation and thus having the GRDDL
result produce a result with English-language content. </p> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="langconneg2"><b>Content Negotiation with
GRDDL (2 of 2)</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/conneg.html">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/conneg-de.rdf">output</a><div><a
class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div></div> <p>This
result follows from retrieving a German version of the HTML
representation and thus having the GRDDL result produce a result with
German-language content. </p> <p class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="langconneg3"><b>Content Negotation with
GRDDL (3 of 3)</b>: <div class="maximal-result"><div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/conneg.html">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/conneg-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a>,<a class="grddlCoverage"
href="#testing_merge">merge</a></div> <p>A GRDDL aware agent may
retrieve both representations, for example, by using transparent
content negotiation. This GRDDL result is the merge of the previous
two.</p> </div> <p class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="multipleRepresentations"><b>Multiple
Representations (HTML)</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/multipleRepresentations">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/multipleRepresentationsHtml-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div> <p>This test gives the
GRDDL result of the HTML representation.</p> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="multipleRepresentations2"><b>Multiple
Representations (SVG)</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/multipleRepresentations">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/multipleRepresentationsSvg-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p>This test gives
the GRDDL result of the SVG representation.</p> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="multipleRepresentations3"><b>Multiple
Representations (both)</b>: <div class="maximal-result"><div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/multipleRepresentations">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/multipleRepresentationsBoth-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a>,<a class="grddlCoverage"
href="#testing_merge">merge</a>,<a class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div> <p>This GRDDL result is
the merge of the previous two.</p> </div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="htmlbase1"><b>An html document with a
base element</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/base/xhtmlWithBaseElement">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithBaseElement-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="htmlbase2"><b>A similar html document
without a base element</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/base/xhtmlWithoutBaseElement">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithoutBaseElement-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="htmlbase3"><b>A redirected html document
with a base element</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithBaseElement">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithBaseElement-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="htmlbase4"><b>A similar redirected html
document without a base element</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithoutBaseElement">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xhtmlWithoutBaseElement-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div> <p
class="approved-test">Approval: <a
href="http://www.w3.org/2007/04/25-grddl-wg-minutes.html#item08">2007-04-25</a></p></li>
<li class="NetworkedTest" id="xmlbase1"><b>An xml document with an
xml:base attribute</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/base/xmlWithBase">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xmlWithBase-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p>This test case
exercises resolution of relative references found in the GRDDL results
for a general XML document. In this case, according to <a
href="http://gbiv.com/protocols/uri/rfc/rfc3986.html#base-uri">RFC
3986, section 5.1</a>, a base URI for the relative reference is
recursively discovered on the encapsulating entity for the GRDDL
results, which is the root element of <a
href="http://www.w3.org/2001/sw/grddl-wg/td/base/xmlWithBase">the
input document</a>, in order to maintain fidelity to <a
href="http://www.w3.org/TR/grddl/#sec_rend">the faithful rendition
requirement</a>. The root element assigns the base URI using the
mechanism described in <a href="http://www.w3.org/TR/xmlbase/">XML
Base</a>.</p> <p class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/0248.html">2007-04-27</a></p></li>
<li class="NetworkedTest" id="xmlbase2"><b>A similar xml document
without an xml:base attribute</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/base/xmlWithoutBase">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xmlWithoutBase-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p>This test case
exercises resolution of relative references found in the GRDDL results
for a general XML document. In this case, according to <a
href="http://gbiv.com/protocols/uri/rfc/rfc3986.html#base-uri">RFC
3986, section 5.1</a>, a base URI for the relative reference is
recursively discovered to be the URI used to retrieve <a
href="http://www.w3.org/2001/sw/grddl-wg/td/base/xmlWithoutBase">the
input document</a>, since no base URI is assigned in the content of
the encapsulating entity (that is, the root element of the input
document).</p> <p class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/0248.html">2007-04-27</a></p></li>
<li class="NetworkedTest" id="xmlbase3"><b>A redirected xml document
with an xml:base attribute</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xmlWithBase">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/xmlWithBase-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p>This test case
exercises resolution of relative references found in the GRDDL results
for a general XML document when that document is resolved through a
protocol redirection mechanism. The base URI for these relative
references is established by the xml:base attribute on the root
element, as for <a
href="http://www.w3.org/2001/sw/grddl-wg/td/grddl-tests#xmlbase1">"An
xml document with an xml:base attribute"</a>.</p> <p
class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/0248.html">2007-04-27</a></p></li>
<li class="NetworkedTest" id="xmlbase4"><b>A similar redirected xml
document without an xml:base attribute</b>: <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/xmlWithoutBase">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/xmlWithoutBase-output">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p>This test case
exercises resolution of relative references found in the GRDDL results
for a general XML document when that document is resolved through a
protocol redirection mechanism. The base URI of the document is the
target URI of the last redirection step; after establishing this fact,
this test case follows the same behavior as <a
href="http://www.w3.org/2001/sw/grddl-wg/td/grddl-tests#xmlbase2">"A
similar xml document without an xml:base attribute"</a>.</p> <p
class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/0248.html">2007-04-27</a></p></li>
</ul> </div> <h2 id="primer-tests">Primer Material</h2> <p>This section
includes material from the <a href="#ref-Primer">[Primer]</a>.</p> <ul
class="TestList">
<li id="hl7-to-owl"><b>XML Documents in Health Care (HL7 3.0)</b>
<div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/hl7-sample.xml">input</a>
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/hl7-rim-pomr.rdf">output</a><div><a
class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div></div> <p>This test
demonstrate the ability to use GRDDL to transform from <a
href="http://www.hl7.org/">HL7 CDA</a> to a medical record <a
href="http://purl.org/cpr/0.5">ontology</a>. Derived from <a
href="http://www.w3.org/TR/grddl-scenarios/#health_care_use_case">usecase</a>
and primer <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Feb/0199.html">material</a></p>
<p class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/att-0091/18-grddl-wg-minutes.html#item09">2007-04-18</a></p></li>
</ul> <h2 id="informative">Informative Tests</h2> <p>This section
includes tests not covered explicitly by the normative text of the GRDDL
but demonstrate additional behavior that a GRDDL-aware agent may exhibit.
They reflect behavior suggested by the Working Group as a <a
href="http://www.w3.org/TR/grddl/#issues" shape="rect">result</a> of
resolving certain issues.</p> <ul class="InformativeTestList">
<li id="atomttl1"><b>Transformations may produce serializations other
than RDF/XML</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/atom-grddl.xml">input</a>,
<a
href="http://www.w3.org/2001/sw/grddl-wg/td/atom-grddl-output.rdf">output</a><div><a
class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div></div> <p>This test
demonstrates an informative resolution to the <a
href="http://www.w3.org/tr/grddl#issue-output-formats">issue-output-formats</a>
issue with an XSLT GRDDL transformation which outputs a <a
href="#ref-TURTLE">[TURTLE]</a> RDF graph serialization associated
with an appropriate media-type (<tt>text/rdf+n3</tt>) via XSLT's <a
href="http://www.w3.org/TR/xslt#output">output</a> element.</p> <p
class="approved-test">approval: <a
href="http://www.w3.org/2007/04/11-grddl-wg-minutes.html#item03">11
April telecon</a></p></li>
<li id="unknown-media-type"><b>Unknown media type</b> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/unknown-media-type.xml">input</a>
<a href="http://www.w3.org/2001/sw/grddl-wg/td/empty.rdf">output</a>
</div><div><a class="grddlCoverage"
href="#testing_GRDDL_transformation">xml</a></div> <p>an XSL transform
may have output in an unknown media type. In this test, it is assumed
that the GRDDL aware agent being tested does not know how to parse
<code>x-no-such-type/x-no-such-subtype</code> documents.</p> <p
class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/att-0091/18-grddl-wg-minutes.html#item09">2007-04-18</a></p></li>
<li id="error1" class="NetworkedTest"><b>An HTML document with both good and bad
transforms:</b><div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/withErrors">input</a> <a
href="http://www.w3.org/2001/sw/grddl-wg/td/one.rdf">output</a>
</div><div><a class="grddlCoverage"
href="#testing_tlrel">grddl-profile</a></div> <p
class="approved-test">Approval: <a
href="http://lists.w3.org/Archives/Public/public-grddl-wg/2007May/att-0104/2007-05-30-grddl-wg-minutes.html#item02">2007-05-30</a></p></li>
</ul> <h3 id="security-tests">Security Tests</h3> <p> The following
security tests are provided for implementers to adapt and use for their
implementation. Security issues are usually system specific, and it may be
possible for a malicious party to access XSLT version and vendor
information concerning a specific GRDDL agent instance.</p> <p>We do not
provide instructions as to how to test your system against these tests,
since they are likely to be not directly applicable. Developers of GRDDL
aware agents are encouraged to understand these tests, and consider how
their own systems may have potential security weaknesses. </p> <ul>
<li class="SecurityTest" id="security1"><b>Reading local file</b>
Using <code>document('file:///temp/local.txt')</code>. <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/security.html">input</a>
</div> <p></p></li>
<li class="SecurityTest" id="security2"><b>Reading remote file</b>
Using <code>document('http://www.w3.org/')</code>. <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/security2.html">input</a>
</div> <p></p></li>
<li class="SecurityTest" id="security3"><b>Writing local file</b>
Using <code>&lt;xsl:result-document
href="file:///temp/a.txt"&gt;</code>. <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/security3.html">input</a>
</div> <p></p></li>
<li class="SecurityTest" id="security4"><b>Sending local file to
remote server</b> Using <code>&lt;xsl:value-of select="document(
concat( 'http://www.w3.org/?', encode-for-uri(
unparsed-text('file:///temp/local.txt') ) ) )" /&gt;</code> <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/security4.html">input</a>
</div> <p></p></li>
<li class="SecurityTest" id="security6"><b>Sending user information to
remote server</b> The suspect code occurs in the transform for the
profile document, and is
<code>rdf:resource="security6.sxsl?{system-property('user.home')}"</code>.
This uses a Saxon extension to the XSLT <code>system-property</code>
function. <div><a
href="http://www.w3.org/2001/sw/grddl-wg/td/security6.html">input</a>
</div> <p></p></li>
</ul>
<h1 id="appendices">Appendices</h1>
<h2 id="test_coverage">A Test Coverage</h2> <p>This section groups
the tests according to the GRDDL rules they exercise as described in the
specification. Each group leads with a link into the specification where
the formal semantics of the corresponding rule is defined.</p><h3 id="testing_GRDDL_transformation">A.1
Nominating GRDDL Transformations in well-formed XML - xml</h3><p>See <a
href="http://www.w3.org/TR/grddl#rule_GRDDL_transformation">rule</a> (<em>#rule_GRDDL_transformation</em>).</p><ul>
<li><a href="#xmlWithGrddlAttribute">P3P work-alike</a></li>
<li><a href="#projectsSpreadsheet">Get RDF from a spreadsheet</a></li>
<li><a href="#base-param">Base URI: Same document reference</a></li>
<li><a href="#title_author">Title / Author (from
specification)</a></li>
<li><a href="#xmlWithGrddlAttributeAndNonXMLNamespaceDocument">XML
document linking to its transformer through the GRDDL
attribute</a></li>
<li><a href="#three-transforms">An XML document with two namespace
transformations and a transform on the root element</a></li>
<li><a href="#four-transforms">An XML document with two namespace
transformations and two transforms on the root element</a></li>
<li><a href="#inline-rdf1">Embedded RDF1</a></li>
<li><a href="#inline-rdf2">Embedded RDF2</a></li>
<li><a href="#inline-rdf3">Embedded RDF3</a></li>
<li><a href="#inline-rdf4">Embedded RDF using a relative
xml:base</a></li>
<li><a href="#inline-rdf5">Embedded RDF using an absolute
xml:base</a></li>
<li><a href="#inline-rdf6">Embedded RDF using two nested absolute
xml:base</a></li>
<li><a href="#inline-rdf8">Embedded RDF using two different xml:base
on two different blocks of RDF</a></li>
<li><a href="#inline-rdf9">Embedded RDF using two different xml:lang
on two different blocks of RDF</a></li>
<li><a href="#inline-rdf10">Embedded RDF using two different
inherited xml:lang on two different blocks of RDF</a></li>
<li><a href="#loop">Namepace Loop</a></li>
<li><a href="#xinclude">Testing GRDDL when XInclude processing is
enabled</a></li>
<li><a href="#grddlonrdf">Testing GRDDL attributes on RDF
documents</a></li>
<li><a href="#loopx">Namespace loop</a></li>
<li><a href="#html-and-transformation-attr">HTML document with
transformation attribute on root</a></li>
<li><a href="#grddlonrdf-xmlmediatype">Testing GRDDL attributes on RDF
documents with XML media type</a></li>
<li><a href="#langconneg1">Content Negotiation with GRDDL</a></li>
<li><a href="#multipleRepresentations2">Multiple Representations
(SVG)</a></li>
<li><a href="#xmlbase1">An xml document with an xml:base
attribute</a></li>
<li><a href="#xmlbase2">A similar xml document without an xml:base
attribute</a></li>
<li><a href="#hl7-to-owl">XML Documents in Health Care (HL7
3.0)</a></li>
<li><a href="#atomttl1">Transformations may produce serializations
other than RDF/XML</a></li>
<li><a href="#unknown-media-type">Unknown media type</a></li>
</ul><h3 id="testing_merge">A.2 Merging GRDDL Results - merge</h3><p>See
<a href="http://www.w3.org/TR/grddl#rule_merge">rule</a> (<em>#rule_merge</em>).</p><ul>
<li><a href="#xhtmlWithMoreThanOneGrddlTransformation">Two
transformations linked from the body of a document with the GRDDL
profile</a></li>
<li><a href="#hcard1">An hcard profile</a></li>
<li><a href="#multiprofile">2 profiles: eRDF and hCard</a></li>
<li><a href="#hcarda">A variant of the hcard profile</a></li>
<li><a href="#card5n">hcard from a 1998 review comment on P3P</a></li>
<li><a href="#hcard">A copy of the hcard profile</a></li>
<li><a href="#two-transforms">An XML document with two namespace
transformations</a></li>
<li><a href="#three-transforms">An XML document with two namespace
transformations and a transform on the root element</a></li>
<li><a href="#four-transforms">An XML document with two namespace
transformations and two transforms on the root element</a></li>
<li><a href="#card5na">A variant of the card5n test</a></li>
<li><a href="#loop">Namepace Loop</a></li>
<li><a href="#loopx">Namepace Loop</a></li>
<li><a href="#xinclude">Testing GRDDL when XInclude processing is
enabled</a></li>
<li><a href="#grddlonrdf">Testing GRDDL attributes on RDF
documents</a></li>
<li><a href="#xhtmlWithGrddlEnabledProfileAndInBodyTransform">Document
linking to its transformer through a GRDDL-enabled profile, and with
in-line transformation</a></li>
<li><a href="#grddlonrdf-xmlmediatype">Testing GRDDL attributes on RDF
documents with XML media type</a></li>
<li><a href="#langconneg1">Content Negotiation with GRDDL</a></li>
<li><a href="#pf-pf-pf-ns">Recursion 1</a></li>
<li><a href="#ns-ns-pf-pf">Recursion 2</a></li>
<li><a href="#ns-pf-ns-pf-ns">Recursion 3</a></li>
<li><a href="#multipleRepresentations3">Multiple Representations
(both)</a></li>
</ul><h3 id="testing_nstx">A.3 Nominating Namespace Transformations -
ns</h3><p>See <a
href="http://www.w3.org/TR/grddl#rule_nstx">rule</a> (<em>#rule_nstx</em>).</p><ul>
<li><a href="#sq1">Namespace documents and media types 1</a></li>
<li><a href="#sq2">Namespace documents and media types 2</a></li>
<li><a href="#two-transforms">An XML document with two namespace
transformations</a></li>
<li><a href="#three-transforms">An XML document with two namespace
transformations and a transform on the root element</a></li>
<li><a href="#four-transforms">An XML document with two namespace
transformations and two transforms on the root element</a></li>
<li><a href="#loop">Namepace Loop</a></li>
<li><a href="#loopx">Namepace Loop</a></li>
<li><a href="#pf-pf-pf-ns">Recursion 1</a></li>
<li><a href="#ns-ns-pf-pf">Recursion 2</a></li>
<li><a href="#ns-pf-ns-pf-ns">Recursion 3</a></li>
</ul><h3 id="testing_rdfxbase">A.4 RDF/XML Base Rule -
rdfx-base</h3><p>See <a
href="http://www.w3.org/TR/grddl#rule_rdfxbase">rule</a> (<em>#rule_rdfxbase</em>).</p><ul>
<li><a href="#rdfXMLDoc">RDF/XML document</a></li>
<li><a href="#sq1">Namespace documents and media types 1</a></li>
<li><a href="#sq2">Namespace documents and media types 2</a></li>
<li><a href="#inline-rdf3">Embedded RDF3</a></li>
<li><a href="#grddlonrdf">Testing GRDDL attributes on RDF
documents</a></li>
<li><a href="#pf-pf-pf-ns">Recursion 1</a></li>
<li><a href="#ns-ns-pf-pf">Recursion 2</a></li>
<li><a href="#ns-pf-ns-pf-ns">Recursion 3</a></li>
<li><a href="#grddlonrdf-xmlmediatype">Testing GRDDL attributes on RDF
documents with XML media type</a></li>
<li><a href="#loopx">Namepace Loop</a></li>
</ul><h3 id="testing_tlrel">A.5 Nominating Transformations via GRDDL
Metadata Profile - grddl-profile</h3><p>See <a
href="http://www.w3.org/TR/grddl#rule_tlrel">rule</a> (<em>#rule_tlrel</em>).</p><ul>
<li><a href="#rdfa1">RDFa example</a></li>
<li><a href="#inline">Inline transformation reference</a></li>
<li><a href="#xhtmlWithGrddlProfile">One transform linked from the
head of a document with only the GRDDL profile</a></li>
<li><a href="#xhtmlWithGrddlTransformationInBody">One transform linked
from the body of a document with only the GRDDL profile</a></li>
<li><a href="#xhtmlWithMoreThanOneProfile">One transform linked from
the head of a document with several profiles, including the GRDDL
profile</a></li>
<li><a href="#xhtmlWithMoreThanOneGrddlTransformation">Two
transformations linked from the body of a document with the GRDDL
profile</a></li>
<li><a href="#hcard1">An hcard profile</a></li>
<li><a href="#multiprofile">2 profiles: eRDF and hCard</a></li>
<li><a href="#card5n">hcard from a 1998 review comment on P3P</a></li>
<li><a href="#hcard">A copy of the hcard profile</a></li>
<li><a href="#xhtmlWithGrddlEnabledProfile">Document linking to its
transformer through a GRDDL-enabled profile</a></li>
<li><a href="#glean-profile">Glean Profile</a></li>
<li><a href="#grddlProfileBase1">An XHTML profile using a base
element</a></li>
<li><a href="#grddlProfileBase3">XHTML with an XHTML profile using a
base element</a></li>
<li><a href="#spaces-in-rel">Spaces in rel attribute</a></li>
<li><a href="#html-and-transformation-attr">HTML document with
transformation attribute on root</a></li>
<li><a href="#xhtmlWithGrddlEnabledProfileAndInBodyTransform">Document
linking to its transformer through a GRDDL-enabled profile, and with
in-line transformation</a></li>
<li><a
href="#xhtmlWithGrddlEnabledProfileAndADisabledInBodyTransform">Document
linking to its transformer through a GRDDL-enabled profile, and with
in-line transformation</a></li>
<li><a href="#multipleRepresentations">Multiple Representations
(HTML)</a></li>
<li><a href="#htmlbase1">An html document with a base element</a></li>
<li><a href="#htmlbase2">A similar html document without a base
element</a></li>
</ul><h3 id="testing_profiletrans">A.6 Identifying Metadata Profile
Transformations - other-profile</h3><p>See <a
href="http://www.w3.org/TR/grddl#rule_profiletrans">rule</a> (<em>#rule_profiletrans</em>).</p><ul>
<li><a href="#hcard1">An hcard profile</a></li>
<li><a href="#multiprofile">2 profiles: eRDF and hCard</a></li>
<li><a href="#hcarda">A variant of the hcard profile</a></li>
<li><a href="#card5n">hcard from a 1998 review comment on P3P</a></li>
<li><a href="#card5na">A variant of the card5n test</a></li>
<li><a href="#xhtmlWithGrddlEnabledProfile">Document linking to its
transformer through a GRDDL-enabled profile</a></li>
<li><a href="#grddlProfileBase3">XHTML with an XHTML profile using a
base element</a></li>
<li><a href="#pf-pf-pf-ns">Recursion 1</a></li>
<li><a href="#ns-ns-pf-pf">Recursion 2</a></li>
<li><a href="#ns-pf-ns-pf-ns">Recursion 3</a></li>
<li><a href="#xhtmlWithGrddlEnabledProfileAndInBodyTransform">Document
linking to its transformer through a GRDDL-enabled profile, and with
in-line transformation</a></li>
<li><a
href="#xhtmlWithGrddlEnabledProfileAndADisabledInBodyTransform">Document
linking to its transformer through a GRDDL-enabled profile, and with
in-line transformation</a></li>
</ul><p></p><h2 id="references">B References</h2> <h3
id="references-normative">B.1 Normative</h3> <dl class="bib">
<dt><a id="ref-GRDDL" shape="rect"></a>[GRDDL]</dt>
<dd><em><a href="http://www.w3.org/TR/grddl" shape="rect">Gleaning
Resource Descriptions from Dialects of Languages (GRDDL)</a></em>, Dan
Connolly, 2007/03/02</dd>
<dt><a id="ref-RDF_Concepts" name="ref-RDF_Concepts" shape="rect">[RDF
Concepts]</a></dt>
<dd><cite><a
href="http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/"
shape="rect"> RDF Concepts and Abstract Syntax</a></cite>, Graham
Klyne and Jeremy J. Carroll, Editors, W3C Recommendation 10 February
2004. <a href="http://www.w3.org/TR/rdf-concepts/" shape="rect">Latest
version</a> available at http://www.w3.org/TR/rdf-concepts/ .</dd>
<dt><a id="ref-RDF_Syntax" name="ref-RDF_Syntax" shape="rect">[RDF
Syntax]</a></dt>
<dd><cite><a
href="http://www.w3.org/TR/2004/REC-rdf-syntax-grammar-20040210/"
shape="rect"> RDF/XML Syntax Specification (Revised)</a></cite>. Dave
Beckett, Editor, W3C Recommendation 10 February 2004. <a
href="http://www.w3.org/TR/rdf-syntax-grammar/" shape="rect">Latest
version</a> available at http://www.w3.org/TR/rdf-syntax-grammar/
.</dd>
</dl> <h3 id="references-informative">B.2 Informative</h3><dl>
<dt><a id="ref-XMLSchema" name="ref-XMLSchema"
shape="rect">[XMLSCHEMA]</a></dt>
<dd><cite><a
href="http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/"
shape="rect">XML Schema Part 1: Structures Second Edition</a> , H. Thompson, D. Beech, M. Maloney, N. Mendelsohn, W3C Recommendation, 28 October 2004,
http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/ . <a
href="http://www.w3.org/TR/xmlschema-1/">Latest</a> version available
at http://www.w3.org/TR/xmlschema-1/ .</cite>.</dd>
<dt><a id="ref-XInclude" name="ref-XInclude"
shape="rect">[XINCLUDE]</a></dt>
<dd><cite><a
href="http://www.w3.org/TR/2006/REC-xinclude-20061115/"
shape="rect">XML Inclusions (XInclude) Version 1.0 (Second Edition)</a> , J. Marsh, D. Orchard, D. Veillard, W3C Recommendation, 15 November 2006,
http://www.w3.org/TR/2006/REC-xinclude-20061115/ . <a
href="http://www.w3.org/TR/xinclude/">Latest</a> version available
at http://www.w3.org/TR/xinclude/ .</cite>.</dd>
<dt><a id="ref-XProc" name="ref-XProc"
shape="rect">[XPROC]</a></dt>
<dd><cite><a
href="http://www.w3.org/TR/2007/WD-xproc-20070405/"
shape="rect">XProc: An XML Pipeline Language</a>, N. Walsh, A. Milowski, W3C Working Draft (work in progress), 5 April 2007,
http://www.w3.org/TR/2007/WD-xproc-20070405/ . <a
href="http://www.w3.org/TR/xproc/">Latest</a> version available
at http://www.w3.org/TR/xproc/ .</cite>.</dd>
<dt><a id="ref-XPath" name="ref-XPath"
shape="rect">[XPATH]</a></dt>
<dd><cite><a
href="http://www.w3.org/TR/1999/REC-xpath-19991116"
shape="rect">XML Path Language (XPath) Version 1.0</a></cite>, J. Clark, S. J.
DeRose, Editors, W3C Recommendation, 16 November 1999,
http://www.w3.org/TR/1999/REC-xpath-19991116 . <a href="http://www.w3.org/TR/xpath">Latest version</a> available at http://www.w3.org/TR/xpath .
</dd>
<dt><a id="ref-XMLInfoset" name="ref-XMLInfoset"
shape="rect">[XML INFOSET]</a></dt>
<dd><cite><a
href="http://www.w3.org/TR/2004/REC-xml-infoset-20040204/"
shape="rect">XML Information Set (Second Edition)</a>, J. Cowan, R. Tobin, W3C Recommendation, 4 February 2004,
http://www.w3.org/TR/2004/REC-xml-infoset-20040204/ . <a
href="http://www.w3.org/TR/xml-infoset/">Latest</a> version available
at http://www.w3.org/TR/xml-infoset/ .</cite>.</dd>
<dt><a id="ref-TURTLE" name="ref-TURTLE"
shape="rect">[TURTLE]</a></dt>
<dd><cite><a href="http://www.dajobe.org/2004/01/turtle/"
shape="rect">Turtle - Terse RDF Triple Language</a></cite>. Dave
Beckett, Editor, 04 December 2006.</dd>
<dt><a id="ref-Primer" name="ref-Primer"
shape="rect">[PRIMER]</a></dt>
<dd><cite><a
href="http://www.w3.org/TR/2006/WD-grddl-primer-20061002/"
shape="rect">GRDDL Primer</a> , I. Davis, Editor, W3C Working Draft
(work in progress), 2 October 2006,
http://www.w3.org/TR/2006/WD-grddl-primer-20061002/ . <a
href="http://www.w3.org/TR/grddl-primer/">Latest</a> version available
at http://www.w3.org/TR/grddl-primer/ .</cite>.</dd>
<dt><a id="ref-EARL" name="ref-EARL" shape="rect">[EARL]</a></dt>
<dd><cite><a href="http://www.w3.org/TR/EARL10-Schema/" shape="rect">
Evaluation and Report Language (EARL) 1.0 Schema</a></cite>. Shadi
Abou-Zahra and Charles McCathieNevile, Editors, W3C Working Draft 27
September 2006, http://www.w3.org/TR/EARL10-Schema/ .</dd>
<dt><a id="ref-WEBARCH" name="ref-WEBARCH"
shape="rect">[WEBARCH]</a></dt>
<dd><cite> <a href="http://www.w3.org/TR/2004/REC-webarch-20041215/"
shape="rect">Architecture of the World Wide Web, Volume One</a>
</cite>, N. Walsh, I. Jacobs, Editors, W3C Recommendation, 15 December
2004. <a href="http://www.w3.org/TR/webarch/" shape="rect">Latest
version</a> available at http://www.w3.org/TR/webarch/ .</dd>
<dt><a id="ref-OWL" name="ref-OWL" shape="rect">[OWL]</a></dt>
<dd><cite> <a href="http://www.w3.org/TR/2004/REC-owl-ref-20040210/"
shape="rect">OWL Web Ontology Language Reference</a> </cite>, S.
Bechhofer, F. van Harmelen, J. Hendler, I. Horrocks, D. L. McGuinness,
P. F. Patel-Schneider, L. Andrea Stein, W3C Recommendation, 10
February 2004. <a href="http://www.w3.org/TR/owl-ref/"
shape="rect">Latest version</a> available at
http://www.w3.org/TR/owl-ref/ .</dd>
<dt><a id="ref-RFC2616" name="ref-RFC2616"
shape="rect">[RFC2616]</a></dt>
<dd>IETF <cite><a href="http://www.ietf.org/rfc/rfc2616.txt"
shape="rect">RFC 2616: Hypertext Transfer Protocol -
HTTP/1.1</a></cite>, J. Gettys, J. Mogul, H. Frystyk, L. Masinter, P.
Leach, T. Berners-Lee, June 1999. Available at
http://www.ietf.org/rfc/rfc2616.txt.</dd>
<dt><a id="ref-FOAF" name="ref-FOAF" shape="rect">[FOAF]</a></dt>
<dd><cite> <a href="http://xmlns.com/foaf/0.1/" shape="rect">FOAF
Vocabulary Specification </a> </cite>, Dan Brickley, Libby Miller, 27
July 2005.</dd>
<dt><a id="ref-DOAP" name="ref-DOAP" shape="rect">[DOAP]</a></dt>
<dd><cite> <a href="http://usefulinc.com/doap/" shape="rect">DOAP:
Description of a Project</a> </cite>, Edd Dumbill.</dd>
</dl></div>
<h2 id="acknowledgements">C Acknowledgements</h2>
<p>The editor thankfully acknowledges the contributions of the following
Working Group members and personel:</p>
<ul>
<li><a href="http://www.w3.org/People/Connolly/" shape="rect">Dan
Connolly</a>, W3C</li>
<li><a href="http://dannyayers.com/" shape="rect">Danny Ayers</a>,
Independent</li>
<li><a href="http://www-uk.hpl.hp.com/people/jjc/" shape="rect">Jeremy
J. Carroll</a>, Hewlett Packard</li>
<li><a href="http://www-uk.hpl.hp.com/people/bwm/" shape="rect">Brian
McBride</a> Hewlett Packard</li>
<li><a href="http://www-sop.inria.fr/acacia/personnel/Fabien.Gandon/"
shape="rect">Fabien Gandon</a>, INRIA</li>
<li><a href="http://infinitesque.net/" shape="rect">John Clark</a>,
Cleveland Clinic Foundation</li>
<li><a href="http://www.w3.org/People/Dom/" shape="rect">Dominique
Hazaël-Massieux</a>, W3C</li>
<li><a href="http://www.ibiblio.org/hhalpin" shape="rect">Harry Halpin</a>, University of Edinburgh</li>
</ul>
<p>The security tests were created during the development of the <a
href="http://jena.sourceforge.net/grddl">Jena GRDDL Reader</a> which uses
the <a href="http://saxon.sourceforge.net/">Saxon8.8 XSLT processor</a>.
They hence illustrate how a malicious party may try to abuse features of
such an implementation.</p>
<h2 id="changelog">D Change Log</h2>
<p>The only change since the July Proposed Recommendation
was:</p>
<ul>
<li>reworked the policy statement in section <a
href="#policy">Local Policies, Faithful Rendition, and
Conformance</a> to better match XQuery/XST/GRDDL WGs request WRT
faithful renditions, XML schemas, and may not language</li>
</ul>
</body>
</html>