Initial import
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/xerces-c-3.0.0@1 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
Executable
+51
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="faqs">
|
||||
<s1 title="{@title}">
|
||||
<s2 title="Questions">
|
||||
<ul>
|
||||
<xsl:apply-templates select="faq" mode="index"/>
|
||||
</ul>
|
||||
</s2>
|
||||
<br/>
|
||||
<xsl:apply-templates select="faq"/>
|
||||
</s1>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="faq" mode="index">
|
||||
<li>
|
||||
<link anchor="faq-{position()}">
|
||||
<xsl:if test="string-length(@title)=0">
|
||||
<xsl:value-of select="q"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(@title)>0">
|
||||
<xsl:value-of select="@title"/>
|
||||
</xsl:if>
|
||||
</link>
|
||||
</li>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="faq">
|
||||
<anchor name="faq-{position()}"/>
|
||||
<s2 title="{q}">
|
||||
<xsl:apply-templates select="a"/>
|
||||
</s2>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="a">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="@*|node()">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*|node()"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
Reference in New Issue
Block a user