Changeset 4 in recipecards for trunk/recipe.xsl
- Timestamp:
- 09/11/13 19:49:05 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/recipe.xsl
r2 r4 3 3 <xsl:stylesheet version="1.0" 4 4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 5 xmlns:recipe="http://xmlns.grim.ath.cx/recipe" 5 6 xmlns:fo="http://www.w3.org/1999/XSL/Format"> 6 7 … … 12 13 <xsl:variable name="width" select="substring-after($size, 'x')"/> 13 14 14 <xsl:template match="recipe ">15 <xsl:template match="recipe:recipe"> 15 16 <fo:root font-family="DejaVuSerif" font-size="10pt"> 16 17 <fo:layout-master-set> … … 28 29 </xsl:template> 29 30 30 <xsl:template match=" title">31 <xsl:template match="recipe:title"> 31 32 <fo:block margin-bottom=".5em" font-weight="bold"> 32 33 <xsl:value-of select="."/> … … 34 35 </xsl:template> 35 36 36 <xsl:template match=" ingredients">37 <xsl:template match="recipe:ingredients"> 37 38 <fo:block margin-bottom=".5em"> 38 39 <xsl:apply-templates/> … … 40 41 </xsl:template> 41 42 42 <xsl:template match=" ingredient">43 <xsl:template match="recipe:ingredient"> 43 44 <fo:block line-height="1.25"><xsl:value-of select="."/></fo:block> 44 45 </xsl:template> 45 46 46 <xsl:template match=" note">47 <xsl:template match="recipe:note"> 47 48 <fo:block line-height="1.25" margin-left="1em" font-size="90%"><xsl:value-of select="."/></fo:block> 48 49 </xsl:template> 49 50 50 <xsl:template match=" para">51 <xsl:template match="recipe:para"> 51 52 <fo:block margin-bottom=".5em"> 52 53 <xsl:value-of select="."/>
Note: See TracChangeset
for help on using the changeset viewer.