网站制作

本类阅读TOP10

·IIS 安装配置全攻略
·用VS.NET打开网上下载的.NET web项目出错的解决办法
·HTML 4.0 语言快速参考
·限制TextArea区的文字输入数量
·如何在网页上实现进度条
·Apache的配置步骤及测试
·谈谈Jesse James Garrett提到的Ajax
·html基础学习笔记(2)
·页面垂直居中的两种方法
·用asp遍历目录下文件的例子

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
XML + XSL + JS 构建小型Web App (十一)

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

样式单文件源代码  (主要是表格的构建:) ):

 

<?xml version="1.0" encoding="GB2312"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xml:space="preserve">

   <xsl:output encoding="gb2312"/>

   <xsl:template match="/履历列表/履历元素">

       <html>

          <head>

             <title>

                 <xsl:value-of select="/姓名"/>个人简历</title>

             <style>

                 table{cellpadding:0;cellspacing:0;border-collapse:collapse;}

                 td{border:1px solid black;font-size:12px;}

                 th{border:1px solid black;font-size:12px;}

                 p{font-size:12px;}

             </style>

          </head>

          <body>

             <p style="font-weight:800;font-size:24px;" align="center">

                 <xsl:value-of select="/姓名"/>

                 个人简历

                 </p>
         
<p align="center">

                 <table width="600px">

                    <tr>

                       <th width="15%">姓名</th>

                       <td width="15%">

                           <xsl:value-of select="/姓名/"/>

                           <xsl:value-of select="/姓名/"/>

                       </td>

                       <th  width="15%">性别</th>

                       <td width="15%">

                           <xsl:value-of select="/性别"/>

                       </td>

                       <td rowspan="3" width="15%">

                       <img alt="照片" width="100px" src="{/照片路径/@val}"/>

                       </td>

                    </tr>

 




相关文章

相关软件