<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><!--
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://docbook.org/ns/docbook" version="1.0" ><!--
This stylesheet was autogenerated from the 'createstylesheet.xsl'
XSLT stylesheet. It contains template matches for all of the known
element declarations found in the W3C or RelaxNG schema passed through
06.06.2006 [Jim E.] - Initial release
05.29.2008 [Scott Hudson] - created shakespeare2docbook.
-->
-<xsl:template match="/"><xsl:apply-templates/></xsl:template>
- <xsl:template match="ACT"><chapter role="act"><xsl:apply-templates /></chapter></xsl:template>
- <xsl:template match="EPILOGUE"><chapter role="epilogue"><xsl:apply-templates /></chapter></xsl:template>
- <xsl:template match="FM"><info><author><personname><firstname>William</firstname><surname>Shakespeare</surname></personname></author><xsl:apply-templates /></info></xsl:template>
+ <xsl:template match="/"><xsl:processing-instruction name="oxygen">RNGSchema="http://docbook.svn.sourceforge.net/viewvc/*checkout*/docbook/trunk/docbook/relaxng/publishers/src/publishers.rnc" type="compact"</xsl:processing-instruction>
+ <xsl:apply-templates/></xsl:template>
+ <xsl:template match="ACT"><chapter remap="ACT"><xsl:apply-templates /></chapter></xsl:template>
+ <xsl:template match="EPILOGUE">
+ <xsl:choose>
+ <xsl:when test="parent::ACT"><section remap="EPILOGUE"><xsl:apply-templates /></section></xsl:when>
+ <xsl:otherwise><chapter remap="EPILOGUE"><xsl:apply-templates/></chapter></xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+ <xsl:template match="FM"><info remap="FM"><author><personname><firstname>William</firstname><surname>Shakespeare</surname></personname></author><legalnotice><xsl:apply-templates /></legalnotice><copyright><year>2008</year><holder>Scott Hudson</holder></copyright></info></xsl:template>
<xsl:template match="GRPDESCR"><xsl:apply-templates /></xsl:template>
- <xsl:template match="INDUCT"><chapter role="induct"><xsl:apply-templates /></chapter></xsl:template>
- <xsl:template match="LINE"><line><xsl:apply-templates /></line></xsl:template>
- <xsl:template match="P"><para><xsl:apply-templates /></para></xsl:template>
- <xsl:template match="PERSONA"><para><personname role="persona"><xsl:apply-templates /></personname></para></xsl:template>
- <xsl:template match="PERSONAE"><preface><xsl:apply-templates /></preface></xsl:template>
- <xsl:template match="PGROUP"><simplelist columns="2"><member><xsl:apply-templates select="PERSONA"/></member><member><xsl:apply-templates select="GRPDESCR"/></member></simplelist></xsl:template>
- <xsl:template match="PLAY"><book xmlns="http://docbook.org/ns/docbook" version="5.0" role="play"><xsl:apply-templates /></book></xsl:template>
- <xsl:template match="PLAYSUBT"><subtitle><xsl:apply-templates /></subtitle></xsl:template>
- <xsl:template match="PROLOGUE"><preface role="prologue"><xsl:apply-templates /></preface></xsl:template>
- <xsl:template match="SCENE"><section role="scene"><xsl:apply-templates /></section></xsl:template>
- <xsl:template match="SCNDESCR"><para role="scndescr"><xsl:apply-templates /></para></xsl:template>
- <xsl:template match="SPEAKER"><speaker role="speaker"><xsl:apply-templates /></speaker></xsl:template>
- <xsl:template match="SPEECH"><dialogue role="speech"><linegroup><xsl:apply-templates /></linegroup></dialogue></xsl:template>
+ <xsl:template match="INDUCT"><chapter remap="INDUCT"><xsl:apply-templates /></chapter></xsl:template>
+ <xsl:template match="LINE"><line remap="LINE"><xsl:apply-templates /></line></xsl:template>
+ <xsl:template match="P"><para remap="P"><xsl:apply-templates /></para></xsl:template>
+ <xsl:template match="PERSONA">
+ <xsl:choose>
+ <xsl:when test="parent::PGROUP"><personname remap="PERSONA"><xsl:apply-templates /></personname></xsl:when>
+ <xsl:otherwise><para><personname remap="PERSONA"><xsl:apply-templates /></personname></para></xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+ <xsl:template match="PERSONAE"><preface remap="PERSONAE"><xsl:apply-templates /></preface></xsl:template>
+ <xsl:template match="PGROUP"><simplelist columns="2" remap="PGROUP"><member><xsl:apply-templates select="PERSONA"/></member><member><xsl:apply-templates select="GRPDESCR"/></member></simplelist></xsl:template>
+ <xsl:template match="PLAY"><book xmlns="http://docbook.org/ns/docbook" version="5.0" remap="PLAY"><xsl:apply-templates /></book></xsl:template>
+ <xsl:template match="PLAYSUBT"/>
+ <xsl:template match="PROLOGUE">
+ <xsl:choose>
+ <xsl:when test="parent::ACT"><section remap="PROLOGUE"><xsl:apply-templates /></section></xsl:when>
+ <xsl:otherwise><preface remap="PROLOGUE"><xsl:apply-templates /></preface></xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+ <xsl:template match="SCENE"><section remap="SCENE"><xsl:apply-templates /></section></xsl:template>
+ <xsl:template match="SCNDESCR"><para remap="SCNDESCR"><xsl:apply-templates /></para></xsl:template>
+ <xsl:template match="SPEAKER"><speaker remap="SPEAKER"><xsl:apply-templates /></speaker></xsl:template>
+ <xsl:template match="SPEECH"><dialogue remap="SPEECH"><linegroup><xsl:apply-templates /></linegroup></dialogue></xsl:template>
<xsl:template match="STAGEDIR"><xsl:choose>
- <xsl:when test="parent::LINE"><phrase role="stagedir"><xsl:apply-templates/></phrase></xsl:when>
- <xsl:otherwise><para role="stagedir"><xsl:apply-templates/></para></xsl:otherwise>
+ <xsl:when test="parent::LINE"><phrase remap="STAGEDIR"><xsl:apply-templates/></phrase></xsl:when>
+ <xsl:otherwise><para remap="STAGEDIR"><xsl:apply-templates/></para></xsl:otherwise>
</xsl:choose></xsl:template>
- <xsl:template match="SUBHEAD"><bridgehead role="subhead"><xsl:apply-templates /></bridgehead></xsl:template>
- <xsl:template match="SUBTITLE"><subtitle><xsl:apply-templates /></subtitle></xsl:template>
- <xsl:template match="TITLE"><title><xsl:apply-templates /></title></xsl:template>
+ <xsl:template match="SUBHEAD"><bridgehead remap="SUBHEAD"><xsl:apply-templates /></bridgehead></xsl:template>
+ <xsl:template match="SUBTITLE"><subtitle remap="SUBTITLE"><xsl:apply-templates /></subtitle></xsl:template>
+ <xsl:template match="TITLE"><title remap="TITLE"><xsl:apply-templates /></title></xsl:template>
</xsl:stylesheet>
\ No newline at end of file