Subject: Stumped on why a field isn't showing up From: Deirdre Saoirse Moen <deirdre@xxxxxxxxxxx> Date: Sun, 13 Jun 2004 04:18:20 -0700 |
Incoming XML file: <?xml version="1.0" standalone="yes"?> <!DOCTYPE novel SYSTEM 'prose.dtd' [ <!ENTITY ch01 SYSTEM "df-synopsis-1.xml"> ] > <novel> <title>Deep Fried</title> <author>Deirdre Saoirse Moen</author> <address>2033 Sharon Road</address> <address>Menlo Park, CA 94025</address> <address>650-561-9820 (H)</address> <address>650-283-6636 (M)</address> <address>deirdre@xxxxxxxxxxx</address> <wordcount>Approx. 100,000 words</wordcount> <heading>Saoirse Moen / Synopsis: Deep Fried</heading> &ch01; </novel>
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:fo='http://www.w3.org/1999/XSL/Format'>
<!-- Show comments in the prose as footnotes --> <xsl:template match="/"> <fo:root font-family="Courier" font-size="12pt"> <fo:layout-master-set> <fo:simple-page-master master-name="manuscript-body"> <fo:region-before extent="1.5in"/> <fo:region-body margin-left="1in" margin-right="1in" margin-top="1.5in" margin-bottom="1in"/> </fo:simple-page-master> </fo:layout-master-set> <xsl:apply-templates select="novel/chapter"/> </fo:root> </xsl:template>
<xsl:template match="author"> <fo:block text-align="start"> <xsl:value-of select="."/> </fo:block> </xsl:template>
<xsl:template match="address"> <fo:block text-align="start"> <xsl:value-of select="."/> </fo:block> </xsl:template>
<xsl:template match="chapter/title"> <xsl:choose> <xsl:when test="../subtitle"> <fo:block font-weight="bold" text-align="center" space-after="0.25in"> <xsl:value-of select="../title"/> </fo:block> </xsl:when> <xsl:otherwise> <fo:block font-weight="bold" text-align="center" space-after="0.25in"> <xsl:value-of select="."/> </fo:block> </xsl:otherwise> </xsl:choose> </xsl:template>
<xsl:template match="chapter/subtitle"> <fo:block font-weight="bold" text-align="center" space-after="0.25in"> <xsl:value-of select="."/> </fo:block> </xsl:template>
<xsl:template match="par"> <fo:block text-indent="0.5in"> <xsl:if test="number(@indent) > 0"> <xsl:attribute name="start-indent"> <xsl:value-of select="concat(@indent*0.5,'in')"/> </xsl:attribute> <xsl:attribute name="end-indent"> <xsl:value-of select="concat(@indent*0.5,'in')"/> </xsl:attribute> </xsl:if> <xsl:apply-templates/> </fo:block> </xsl:template>
<xsl:template match="emph[@style='italic']"> <fo:inline font-style="italic"> <xsl:apply-templates/> </fo:inline> </xsl:template>
<xsl:template match="emph[@style='bold']"> <fo:inline font-weight="bold"> <xsl:apply-templates/> </fo:inline> </xsl:template>
<xsl:template match="secbreak"> <fo:block text-align="center">#</fo:block> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] real big sourcefile (300M, Jeff Kenton | Thread | Re: [xsl] Stumped on why a field is, J.Pietschmann |
Re: [xsl] real big sourcefile (300M, Jeff Kenton | Date | Re: [xsl] Stumped on why a field is, J.Pietschmann |
Month |