1 2 3 4 | <p> An easy way to delete a directory and all its contents (including all subdirectories) is with the <kbd>rd /s</kbd> command. </p> |
1 2 3 4 5 6 | <fo:block> An easy way to delete a directory and all its contents (including all subdirectories) is with the <fo:inline font-family="monospace" font-size="110%">rd /s</fo:inline> command. </fo:block> |
1 2 3 4 5 6 7 | <xsl:template match="kbd"> <fo:inline font-family="monospace" font-size="110%"> <xsl:apply-templates select="*|text()"/> </fo:inline> </xsl:template> |
1 2 3 4 5 6 7 8 | <p> On the Windows 2000 command line, you can use the ampersand (&) to combine several commands into one statement. <nobr> pushd d:\\projects\\xslfo & del *.fo & rebuild.bat & popd </nobr> is an example of this technique. </p> |
1 2 3 4 5 6 7 | <fo:block> On the Windows 2000 command line, you can use the ampersand (&) to combine several commands into one statement. <fo:inline wrap-option="no-wrap">pushd d:\\projects\\xslfo & del *.fo & rebuild.bat & popd </fo:inline> is an example of this technique. </fo:block> |
1 2 3 4 5 6 7 | <xsl:template match="nobr"> <fo:inline wrap-option="no-wrap"> <xsl:apply-templates select="*|text()"/> </fo:inline> </xsl:template> |
1 2 3 4 5 6 7 8 | <p>A few of my favorite albums</p> <ol> <li>A Love Supreme</li> <li>Remain in Light</li> <li>London Calling</li> <li>The Indestructible Beat of Soweto</li> <li>The Joshua Tree</li> </ol> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <fo:block>A few of my favorite albums</fo:block> <fo:list-block provisional-distance-between-starts="0.75cm" provisional-label-separation="0.5cm" space-after="12pt" start-indent="1cm"> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block>1. </fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block> A Love Supreme </fo:block> </fo:list-item-body> </fo:list-item> ... <!-- other list items appear here --> ... </fo:list-block> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | <xsl:template match="ol"> <fo:list-block provisional-distance-between-starts="1cm" provisional-label-separation="0.5cm"> <xsl:attribute name="space-after"> <xsl:choose> <xsl:when test="ancestor::ul or ancestor:l"> <xsl:text>0pt</xsl:text> </xsl:when> <xsltherwise> <xsl:text>12pt</xsl:text> </xsltherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="start-indent"> <xsl:variable name="ancestors"> <xsl:choose> <xsl:when test="count(ancestor:l) or count(ancestor::ul)"> <xsl:value-of select="1 + (count(ancestor:l) + count(ancestor::ul)) * 1.25"/> </xsl:when> <xsltherwise> <xsl:text>1</xsl:text> </xsltherwise> </xsl:choose> </xsl:variable> <xsl:value-of select="concat($ancestors, 'cm')"/> </xsl:attribute> <xsl:apply-templates select="*"/> </fo:list-block> </xsl:template> <xsl:template match="ol/li"> <fo:list-item> <fo:list-item-label end-indent="label-end()"> <fo:block> <xsl:variable name="value-attr"> <xsl:choose> <xsl:when test="../@start"> <xsl:number value="position() + ../@start - 1"/> </xsl:when> <xsltherwise> <xsl:number value="position()"/> </xsltherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="../@type='i'"> <xsl:number value="$value-attr" format="i. "/> </xsl:when> <xsl:when test="../@type='I'"> <xsl:number value="$value-attr" format="I. "/> </xsl:when> <xsl:when test="../@type='a'"> <xsl:number value="$value-attr" format="a. "/> </xsl:when> <xsl:when test="../@type='A'"> <xsl:number value="$value-attr" format="A. "/> </xsl:when> <xsltherwise> <xsl:number value="$value-attr" format="1. "/> </xsl:otherwise> </xsl:choose> </fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block> <xsl:apply-templates select="*|text()"/> </fo:block> </fo:list-item-body> </fo:list-item> </xsl:template> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |