XML + XSL + JS 构建小型Web App (十一)
来源:互联网 发布:做淘宝主图有几种格式 编辑:程序博客网 时间:2024/06/05 19:33
样式单文件源代码 (主要是表格的构建:) ):
<?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>
- XML + XSL + JS 构建小型Web App (十一)
- XML + XSL + JS 构建小型Web App (一)
- XML + XSL + JS 构建小型Web App (二)
- XML + XSL + JS 构建小型Web App (三)
- XML + XSL + JS 构建小型Web App (四)
- XML + XSL + JS 构建小型Web App (五)
- XML + XSL + JS 构建小型Web App (六)
- XML + XSL + JS 构建小型Web App (七)
- XML + XSL + JS 构建小型Web App (八)
- XML + XSL + JS 构建小型Web App (九)
- XML + XSL + JS 构建小型Web App (十)
- XML + XSL + JS 构建小型Web App (十二)
- XML + XSL + JS 构建小型Web App (十三)
- XML + XSL + JS 构建小型Web App (十四)
- XML + XSL + JS 构建小型Web App (十五)
- JS调用XSL解析XML
- MINI_httpd移植,构建小型WEB服务器
- Nginx,原生PHP 搭建小型web app
- XML + XSL + JS 构建小型Web App (六)
- XML + XSL + JS 构建小型Web App (七)
- XML + XSL + JS 构建小型Web App (八)
- XML + XSL + JS 构建小型Web App (九)
- XML + XSL + JS 构建小型Web App (十)
- XML + XSL + JS 构建小型Web App (十一)
- XML + XSL + JS 构建小型Web App (十二)
- XML + XSL + JS 构建小型Web App (十三)
- XML + XSL + JS 构建小型Web App (十四)
- XML + XSL + JS 构建小型Web App (十五)
- XML文件源码察看器(一)
- XML文件源码察看器(二)
- XML文件源码察看器(三)
- XML文件源码察看器(四)