/[LeafOK_CVS]/fenglin/bbs/doc/bbs_xml_doc.xsl
ViewVC logotype

Annotation of /fenglin/bbs/doc/bbs_xml_doc.xsl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Tue Dec 2 11:36:50 2025 UTC (3 months, 2 weeks ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Content type: application/xslt+xml
Add documents

1 sysadm 1.1 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
2     <xsl:output method="html" encoding="UTF-8" version="4.0"/>
3    
4     <xsl:template match="/">
5     <html>
6     <head>
7     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
8     <title><xsl:value-of select="Topic/Title"/></title>
9     </head>
10    
11     <body bgcolor="#f8f8f0" style="margin:10px;">
12     <p align="left">
13     <br/>
14     <xsl:element name="img">
15     <xsl:attribute name="src">/images/logo/fenglinonline.gif</xsl:attribute>
16     </xsl:element>
17     </p>
18     <p align="center">
19     <font size="5" color="red"><b><xsl:value-of select="Topic/Title"/></b></font><br/>
20     (<xsl:value-of select="Topic/Date"/> 修订)
21     </p>
22    
23     <xsl:apply-templates select="Topic/Content" />
24    
25     <p align="right">
26     <font size="2"><i>
27     枫林在线<br/>
28     <xsl:value-of select="Topic/Date"/>
29     </i></font>
30     </p>
31     </body>
32     </html>
33    
34     </xsl:template>
35    
36     <xsl:template match="Topic/Content">
37     <xsl:for-each select="Section">
38     <p>
39     <font size="4" color="green"><b><xsl:value-of select="Name"/></b></font>
40     </p>
41     <p style="margin-left:30px;">
42     <xsl:for-each select="Item">
43     <xsl:for-each select="Text">
44     <xsl:value-of select="."/><br/>
45     </xsl:for-each>
46     <xsl:for-each select="SubItem">
47     <span style="margin-left:30px;"><xsl:value-of select="."/></span><br/>
48     </xsl:for-each>
49     </xsl:for-each>
50     </p>
51     </xsl:for-each>
52     </xsl:template>
53    
54     <xsl:template match="br">
55     <br />
56     </xsl:template>
57    
58     </xsl:stylesheet>

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1