N
nutsmuggler
Hi.
I am using xml to store my annotations.
here is my document (a part of it):
<?xml version="1.0" encoding="UTF-8"?>
<text title="Finnegan's wake">
<book number="1">
<chapter number="5">
<note p="107"> script: <q>proteiform graph, polyhedron of
scripture, etc</q>
</note>
<note p="107"> authorship </note>
<note p="108"> abc and authorship; relationship between
speech and prose </note>
<note p="110">vernacular</note>
<note p="110">ahahn: is it a zen-like revelation?</note>
<note p="111">funferral, bakhtnian carnival</note>
etc..
I use an xsl stylesheet to produce html output.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xslutput method="html" version="1.0" encoding="UTF-8"
indent="no"/>
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"/>
<title>Notes</title>
</head>
<body>
<h1>
<xsl:value-of select="text/@title"/>
</h1>
<xsl:for-each select="text/book">
<h2>Book <xsl:value-of select="@number"/></h2>
<xsl:for-each select="chapter">
<h3>Chapter <xsl:value-of select="@number"/>
</h3>
<xsl:for-each select="note"> - p. <xsl:value-of
select="@p"/>: <xsl:value-of
select="."/>
<br/>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
I would like to manipulate the q tags (q stands for quote), getting an
output like (I'll use my first note as an example):
p 107: script: "proteiform graph, polyhedron of scripture, etc"
Yet I cannot manipulate the embedded q tag. The problem is that the tag
must be embedded, because of its own nature...
Any suggestion?
Thans in advance,
Davide
I am using xml to store my annotations.
here is my document (a part of it):
<?xml version="1.0" encoding="UTF-8"?>
<text title="Finnegan's wake">
<book number="1">
<chapter number="5">
<note p="107"> script: <q>proteiform graph, polyhedron of
scripture, etc</q>
</note>
<note p="107"> authorship </note>
<note p="108"> abc and authorship; relationship between
speech and prose </note>
<note p="110">vernacular</note>
<note p="110">ahahn: is it a zen-like revelation?</note>
<note p="111">funferral, bakhtnian carnival</note>
etc..
I use an xsl stylesheet to produce html output.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xslutput method="html" version="1.0" encoding="UTF-8"
indent="no"/>
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"/>
<title>Notes</title>
</head>
<body>
<h1>
<xsl:value-of select="text/@title"/>
</h1>
<xsl:for-each select="text/book">
<h2>Book <xsl:value-of select="@number"/></h2>
<xsl:for-each select="chapter">
<h3>Chapter <xsl:value-of select="@number"/>
</h3>
<xsl:for-each select="note"> - p. <xsl:value-of
select="@p"/>: <xsl:value-of
select="."/>
<br/>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
I would like to manipulate the q tags (q stands for quote), getting an
output like (I'll use my first note as an example):
p 107: script: "proteiform graph, polyhedron of scripture, etc"
Yet I cannot manipulate the embedded q tag. The problem is that the tag
must be embedded, because of its own nature...
Any suggestion?
Thans in advance,
Davide