|
Subject: Re: [xsl] blockQuotes to blockQuote p p From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 01 May 2003 17:23:15 -0400 |
<?xml version="1.0" encoding="iso-8859-1"?> <!-- from Hart's Rules for Compositors, 39th edition, OUP --> <rules> <p>The following should appear in italic:</p> <bullet>Titles of operas, ballets, song cycles, symphonic poems, oratorios, overtures.</bullet> <bullet>Abbreviated volume indications: <i>pp</i>, <i>mf</i>, etc. (these are always lower case).</bullet> <p>The following should appear in roman, with single quotation marks:</p> <bullet>Titles of single songs</bullet> <bullet>Popular names of works, e.g. the 'Jupiter' Symphony</bullet> <bullet>Phrases denoting tempo marks (unless used as the name of a movement): 'allegro non troppo', 'più tranquillo'.</bullet> <p>The following should appear in roman without quotation marks:</p> <bullet>Musically descriptive titles: Piano Sonata Op. 111, Finale.</bullet> <bullet>Technical terms and names of instruments: andante, cor anglais, forte, organum, shēng, vihuela.</bullet> </rules>
<?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="rules">
<div>
<xsl:apply-templates/>
</div>
</xsl:template><xsl:template match="p"> <xsl:copy-of select="."/> </xsl:template>
<xsl:template match="bullet">
<xsl:if test="not(preceding-sibling::*[1][self::bullet])">
<ul>
<li><xsl:apply-templates/></li>
<xsl:apply-templates mode="in-list"
select="following-sibling::*[1][self::bullet]" />
</ul>
</xsl:if>
</xsl:template><xsl:template match="bullet" mode="in-list">
<li><xsl:apply-templates/></li>
<xsl:apply-templates mode="in-list"
select="following-sibling::*[1][self::bullet]"/>
</xsl:template><div>
<p>The following should appear in italic:</p>
<ul>
<li>Titles of operas, ballets, song cycles, symphonic poems,
oratorios, overtures.
</li>
<li>Abbreviated volume indications: pp, mf, etc.
(these are always lower case).
</li>
</ul>
<p>The following should appear in roman, with single quotation marks:</p>
<ul>
<li>Titles of single songs</li>
<li>Popular names of works, e.g. the 'Jupiter' Symphony</li>
<li>Phrases denoting tempo marks (unless used as the name of
a movement): 'allegro non troppo', 'più tranquillo'.
</li>
</ul>
<p>The following should appear in roman without quotation marks:</p>
<ul>
<li>Musically descriptive titles: Piano Sonata Op. 111, Finale.</li>
<li>Technical terms and names of instruments: andante, cor anglais,
forte, organum, shēng, vihuela.
</li>
</ul>
</div>I hope it helps, Wendell
<section> <head></head> <parallelPassage></parallelPassage> <paragraph></paragraph> <blockQuotes></blockQuotes> <blockQuotes></blockQuotes> <blockQuotes></blockQuotes> <paragraph></paragraph> <paragraph></paragraph> <blockQuotes></blockQuotes> <blockQuotes></blockQuotes> <blockQuotes></blockQuotes> <paragraph></paragraph> </section>
output should be:
<div> <head></head> <parallelPassage></parallelPassage> <p></p> <blockQuote> <p></p> <p></p> <p></p> </blockQuote> <p></p> <p></p> <blockQuote> <p></p> <p></p> <p></p> </blockQuote> <p></p> </div>
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] blockQuotes to blockQuote p p, Jim_Albright | Thread | RE: [xsl] blockQuotes to blockQuote, Passin, Tom |
| [xsl] blockQuotes to blockQuote p p, Jim_Albright | Date | RE: [xsl] blockQuotes to blockQuote, Passin, Tom |
| Month |