XML + XSL + JS 构建小型Web App (十一)

王朝html/css/js·作者佚名  2006-01-08
宽屏版  字体: |||超大  

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

<?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>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有