Permalink
Browse files

Added XInclude 1.1 testsuite test

  • Loading branch information...
ndw committed Sep 12, 2014
1 parent 0d1723c commit c7e81e1d347eedff5cd254b5a423592a9353fae6
@@ -164,4 +164,9 @@ public void testUnzip002() {
public void testUriInfo001() {
suiteRunner.runTest(TESTROOT + "uri-info-001.xml");
}
@Test
public void testXInclude001() {
suiteRunner.runTest(TESTROOT + "xinclude-001.xml");
}
}
@@ -0,0 +1,4 @@
<doc xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:ex="http://example.com/">
<xi:include href="chapter.xml" ex:root="true"/>
</doc>
@@ -0,0 +1 @@
<chapter/>
@@ -0,0 +1,110 @@
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>nwalsh.com</title><meta name="generator" content="DocBook XSL 2.0 Stylesheets V2.0.3" /><link rel="stylesheet" type="text/css" href="/css/tabs.css" /><link rel="stylesheet" type="text/css" href="/css/nwalsh.css" /><link rel="icon" href="http://nwalsh.com/images/nwalsh-icon16.png" type="image/png" /><link rel="stylesheet" type="text/css" href="/css/website.css" /><script type="text/javascript" src="http://docbook.github.com/release/2.0.3/base/js/dbmodnizr.js"></script><script type="text/javascript" language="javascript" src="/script/ua.js"></script><script type="text/javascript" language="javascript" src="/script/xbDOM.js"></script><script type="text/javascript" language="javascript" src="/script/xbLibrary.js"></script><script language="javascript" type="text/javascript">xblibrary = new xbLibrary('script/');</script><script type="text/javascript" language="javascript" src="/script/xbStyle.js"></script><script type="text/javascript" language="javascript" src="/script/overlay.js"></script></head><body onload="overlaySetup('lc')"><div class="header">
<h1><img src="/graphics/logo.png" alt="[nw]"/>
nwalsh<span class="site">.com</span></h1>
</div>
<div class="navset" id="nav">
<div class="hd">
<ul>
<li id="home" class="on" title="selected">
<a href="/">
<strong>
<em>Home</em>
</strong>
</a>
</li>
<li id="docs">
<a href="/docs/">
<em>Docs</em>
</a>
</li>
<li id="docbook">
<a href="/docbook/">
<em>DocBook</em>
</a>
</li>
<li id="java">
<a href="/java/">
<em>Java</em>
</a>
</li>
<li id="perl">
<a href="/perl/">
<em>Perl</em>
</a>
</li>
<li id="emacs">
<a href="/emacs/">
<em>Emacs</em>
</a>
</li>
<li id="hacks">
<a href="/hacks/">
<em>Hacks</em>
</a>
</li>
<li id="xmlns">
<a href="/xmlns/">
<em>XMLNS</em>
</a>
</li>
<li id="people">
<a href="/people">
<em>People</em>
</a>
</li>
<li id="obsolete">
<a href="/obsolete/">
<em>Historical</em>
</a>
</li>
</ul>
</div>
<div class="bd">
<ul>
<li class="on first ">
<a href="/">Welcome</a>
</li>
<li id="sitemap" class=" ">
<a href="/sitemap">Site map</a>
</li>
<li id="announce" class=" ">
<a href="/announce">Announcements</a>
</li>
<li id="privacy" class=" last">
<a href="/privacy">Privacy</a>
</li>
</ul>
</div>
</div>
<div class="adsense">
<script type="text/javascript"><!--
google_ad_client = "pub-6050294877545622";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "C0C0C0";
google_color_bg = "F2F3F5";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div id="home" vocab="http://schema.org/" class="article"><h1>Hello and welcome!</h1><p>This website is run by
<span id="ndw" typeof="Person" resource="http://norman.walsh.name/knows/who/norman-walsh"><a href="people/ndw/"><span property="name"><span property="givenName">Norman</span> <span property="familyName">Walsh</span></span></a></span>
to publish the software and resources he maintains. Enjoy your stay.
If you're interested in the stuff here, you may also be interested in
norm's weblog,
<a href="http://norman.walsh.name/" rel="related">norman.walsh.name</a>.
Or not. Only you can decide.</p><p>You can also find norm on
<a href="http://twitter.com/ndw" rel="alternate">Twitter</a>,
<a href="https://plus.google.com/u/0/112652695581272951676" rel="publisher">Google+</a>,
<a href="http://www.flickr.com/photos/ndw/" rel="alternate">Flickr</a>
(but see also
<a href="http://photos.nwalsh.com/" rel="alternate">his own site</a>),
<a href="https://github.com/ndw" rel="alternate">GitHub</a>, and probably
a dozen other places too.</p><div id="overlayDiv" class="footer"><table border="0" cellpadding="0" cellspacing="0" summary="Footer" width="100%"><tr><td align="left" valign="top">Modified: Mon, 14 Oct 2013</td><td align="center"> <img src="graphics/tiles/tri-lightdown.gif" alt="[tile]" /> <img src="graphics/tiles/arc.gif" alt="[tile]" /> <img src="graphics/tiles/circles.gif" alt="[tile]" /> <img src="graphics/tiles/fleur-de-lis.gif" alt="[tile]" /> <img src="graphics/tiles/flower.gif" alt="[tile]" /> <img src="graphics/tiles/grille.gif" alt="[tile]" /> <img src="graphics/tiles/lion2.gif" alt="[tile]" /> <img src="graphics/tiles/star.gif" alt="[tile]" /> <img src="graphics/tiles/tri-darkdown.gif" alt="[tile]" /></td><td align="right">Copyright © 1997-2013 Norman Walsh</td></tr></table></div></div><script src="/script/stopsopa2.js" type="text/javascript"></script></body></html>
@@ -0,0 +1,48 @@
<rdf:RDF xmlns:doap="http://usefulinc.com/ns/doap/#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:gal="http://norman.walsh.name/rdf/gallery#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:cc="http://web.resource.org/cc/" xmlns:t="http://norman.walsh.name/knows/taxonomy#" xmlns:cvs="http://nwalsh.com/rdf/cvs#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/">
<rdf:Description rdf:about="http://norman.walsh.name/2013/10/12/xprocRDF">
<rdf:type rdf:resource="http://norman.walsh.name/knows/taxonomy#Article"/>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/Text"/>
<dc:format>text/html</dc:format>
<dc:isFormatOf rdf:resource="http://norman.walsh.name/2013/10/12/xprocRDF.xml"/>
<dcterms:created>2013-10-12T14:08:46-05:00</dcterms:created>
<dcterms:issued>2013-10-12T14:10:12.743833-05:00</dcterms:issued>
<dc:identifier>16,10</dc:identifier>
<dc:title>XProc + RDF</dc:title>
<dc:date>2013-10-12T14:08:46-05:00</dc:date>
<dc:creator rdf:resource="http://norman.walsh.name/knows/who#norman-walsh"/>
<dc:rights>
Copyright © 2013 Norman Walsh. This work is licensed under the Creative Commons Attribution-NonCommercial License.
</dc:rights>
<cc:license rdf:resource="http://creativecommons.org/licenses/by-nc/2.0/"/>
<rdf:type rdf:resource="http://web.resource.org/cc/Work"/>
<dc:description>
I finally got around to implementing some RDF extension steps for XML Calabash. I think they play nicely with semantics support in MarkLogic 7 and I'm really quite pleased with the results.
</dc:description>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#MarkLogic"/>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#RDF"/>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#XProc"/>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#Calabash"/>
</rdf:Description>
<rdf:Description rdf:about="http://norman.walsh.name/2013/10/12/xprocRDF.xml">
<dc:format>application/docbook+xml</dc:format>
<dc:hasFormat rdf:resource="http://norman.walsh.name/2010/09/26/nymug"/>
<dcterms:created>2013-10-12T14:08:46-05:00</dcterms:created>
<dcterms:issued>2013-10-12T14:10:12.743833-05:00</dcterms:issued>
<dc:identifier>16,10</dc:identifier>
<dc:title>XProc + RDF</dc:title>
<dc:date>2013-10-12T14:08:46-05:00</dc:date>
<dc:creator rdf:resource="http://norman.walsh.name/knows/who#norman-walsh"/>
<dc:rights>
Copyright © 2013 Norman Walsh. This work is licensed under the Creative Commons Attribution-NonCommercial License.
</dc:rights>
<cc:license rdf:resource="http://creativecommons.org/licenses/by-nc/2.0/"/>
<rdf:type rdf:resource="http://web.resource.org/cc/Work"/>
<dc:description>
I finally got around to implementing some RDF extension steps for XML Calabash. I think they play nicely with semantics support in MarkLogic 7 and I'm really quite pleased with the results.
</dc:description>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#MarkLogic"/>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#RDF"/>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#XProc"/>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#Calabash"/>
</rdf:Description>
</rdf:RDF>
@@ -0,0 +1,29 @@
<?xml-stylesheet type="text/xsl" href="http://tests.xproc.org/style/testcase.xsl"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite">
<t:title>Test p:xinclude 1.1 support</t:title>
<t:pipeline>
<p:declare-step version='1.0' name="main"
xmlns:p="http://www.w3.org/ns/xproc"
xmlns:c="http://www.w3.org/ns/xproc-step"
xmlns:cx="http://xmlcalabash.com/ns/extensions"
xmlns:err="http://www.w3.org/ns/xproc-error">
<p:input port="source">
<p:document href="data/book.xml"/>
</p:input>
<p:output port="result"/>
<p:xinclude/>
</p:declare-step>
</t:pipeline>
<t:output port='result'
xmlns:c="http://www.w3.org/ns/xproc-step">
<doc xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:ex="http://example.com/">
<chapter ex:root="true"/>
</doc>
</t:output>
</t:test>

0 comments on commit c7e81e1

Please sign in to comment.