/[gentoo]/xml/htdocs/xsl/guidexml2wiki.xsl
Gentoo

Diff of /xml/htdocs/xsl/guidexml2wiki.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
14 14
15<xsl:output encoding="UTF-8" method="text" indent="no" /> 15<xsl:output encoding="UTF-8" method="text" indent="no" />
16<xsl:preserve-space elements="pre" /> 16<xsl:preserve-space elements="pre" />
17<!-- <xsl:preserve-space elements="li p pre" /> --> 17<!-- <xsl:preserve-space elements="li p pre" /> -->
18 18
19<xsl:template match="guide"><xsl:apply-templates /> 19<xsl:template match="guide"><xsl:value-of select="normalize-space(abstract)" />
20<xsl:apply-templates />
20<xsl:if test="//guide/author[not(@title='script generated')]"> 21<xsl:if test="//guide/author[not(@title='script generated')]">
21== Acknowledgements == 22== Acknowledgements ==
22 23
23We would like to thank the following authors and editors for their contributions to this guide: 24We would like to thank the following authors and editors for their contributions to this guide:
24<xsl:for-each select="//guide/author"> 25<xsl:for-each select="//guide/author">
84<!-- 85<!--
85 const is formatting in pre, difficult to handle this 86 const is formatting in pre, difficult to handle this
86--> 87-->
87<xsl:template match="const"><xsl:apply-templates /></xsl:template> 88<xsl:template match="const"><xsl:apply-templates /></xsl:template>
88 89
89<xsl:template match="uri"><xsl:text> </xsl:text><xsl:choose><xsl:when test="starts-with(@link, 'http')">[<xsl:value-of select="@link" /><xsl:text> </xsl:text><xsl:value-of select="normalize-space(text())" />]</xsl:when><xsl:when test="not(starts-with(@link, '#'))">[http://www.gentoo.org/<xsl:value-of select="@link"/><xsl:text> </xsl:text><xsl:value-of select="normalize-space(text())" />]</xsl:when></xsl:choose><xsl:text> </xsl:text></xsl:template> 90<xsl:template match="uri"><xsl:text> </xsl:text><xsl:choose><xsl:when test="starts-with(@link, 'http')">[<xsl:value-of select="@link" /><xsl:text> </xsl:text><xsl:value-of select="normalize-space(text())" />]</xsl:when><xsl:when test="not(starts-with(@link, '#'))">[http://www.gentoo.org/<xsl:value-of select="@link"/><xsl:text> </xsl:text><xsl:value-of select="normalize-space(text())" />]</xsl:when><xsl:when test="starts-with(@link, '#')">[[<xsl:value-of select="@link" />]]</xsl:when></xsl:choose><xsl:text> </xsl:text></xsl:template>
90 91
91<xsl:template match="e"> ''<xsl:apply-templates />'' </xsl:template> 92<xsl:template match="e"> ''<xsl:apply-templates />'' </xsl:template>
92 93
93<xsl:template match="ul"><xsl:text> 94<xsl:template match="ul"><xsl:text>
94</xsl:text><xsl:apply-templates /><xsl:text> 95</xsl:text><xsl:apply-templates /><xsl:text>

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20