Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Formatting embedded tags

From: "nutsmuggler" <benini.davide@-----.--->
To: NULL
Date: 12/1/2005 9:48:00 AM
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">
    <xsl:output 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



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent