Mercurial > hg > Aquinas
diff summa/english/split.xsl @ 55:093a560860d9
work together
| author | ht |
|---|---|
| date | Tue, 29 Dec 2009 21:13:07 +0000 |
| parents | f02dd65775b6 |
| children |
line wrap: on
line diff
--- a/summa/english/split.xsl Tue Dec 29 18:40:48 2009 +0000 +++ b/summa/english/split.xsl Tue Dec 29 21:13:07 2009 +0000 @@ -4,32 +4,15 @@ <xsl:output method="xhtml" indent="no"/> - <xsl:template match="x:body"> - <xsl:variable name="pre" select="x:a[@href='summa.FP_Q1.html'][1]"/> - <xsl:copy> - <xsl:apply-templates select="@*"/> - <xsl:for-each select="$pre"> - <xsl:apply-templates select="preceding-sibling::*"/> - <xsl:apply-templates select="."/> - <xsl:for-each-group select="following-sibling::*" group-starting-with="x:h1[@id='viii-p0.1']"> - <xsl:choose> - <xsl:when test="position()=1"> - <xsl:for-each-group select="current-group()" group-starting-with="x:h2"> <xsl:variable name="name" select="translate(substring-before(./@id,'-'),'.','_')"/> - <xsl:message>f: <xsl:value-of select="$name"/>|<xsl:value-of select="local-name()"/>|<xsl:value-of select="count(current-group())"/></xsl:message> -<xsl:text> </xsl:text> - <xi:include href="{$name}.html"/> + <xsl:template match="x:div[@class='div2']"> + <xsl:variable name="name" select="translate(@id,'.','_')"/> + <xsl:message>f: <xsl:value-of select="$name"/>|<xsl:value-of select="count(x:div)"/></xsl:message> + <xi:include href="{$name}.html"/> <xsl:result-document method="xhtml" href="{$name}.html"> - <div><xsl:apply-templates select="current-group()" mode="subdoc"/></div> + <xsl:copy> + <xsl:apply-templates select="@*|node()"/>` + </xsl:copy> </xsl:result-document> - </xsl:for-each-group> -<xsl:text> </xsl:text> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates select="current-group()"/> - </xsl:otherwise> - </xsl:choose> - </xsl:for-each-group> - </xsl:for-each></xsl:copy> </xsl:template> <xsl:template match="node()|@*"> @@ -37,10 +20,4 @@ <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template> - - <xsl:template match="node()|@*" mode="subdoc"> - <xsl:copy> - <xsl:apply-templates select="node()|@*"/> - </xsl:copy> - </xsl:template> </xsl:stylesheet>
