HTML CTS tool kit
With the HTML CTS kit, you can create web pages that resolve and display passages of texts when you include CTS URNs in your page.
Set up your web page
ctskit folder that comes with the downloaded package: you’ll need to make that available on your web server.
An easy way to begin is simply to clone the
index.html in the package, and modify its contents.
Alternatively, if you create a web page from scratch in the same directory as
ctskit, paste the following lines into the
head element of your page:
Citing a text in your page
<blockquote>…</blockquote> element with a
class value of “cts-text” and a
cite attribute whose value is a CTS-URN. The element can contain some descriptive language. When the page loads, it will resolve to the text. (Note that HTML5 does not want
<blockquote> elements to be empty, so throw some content inside the element; it will be replaced by the text pointed to by the citation, but will be visible in the source of the HTML document.)
- The scripts that resolve citations to texts will not work if the HTML files are loaded directly from the filesystem; they must be served over HTTP by Apache or some other web-server.
- The files in the archive include XSLT and CSS for styling the XML results of the CTS query. These can be modified to suit your web site.
See a live web page citing images and texts with URN values. Compare the source HTML (“View source” in your browser) with the browser display of images and texts.