复制代码 代码如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="testweb.WebForm1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Xml TransformSource="XSLTFile1.xslt" ID="minanva" runat="server"></asp:Xml>
</div>
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace testweb
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
minanva.DocumentContent = @"<站点导航列表 来访员工=''>
<站点导航 站点名称='设计计划' 站点编号='EPM' 站点链接='../NWEPDI.EPM.WEB/../Project/ProjectList.aspx?QueueType=EPM0101' />
<站点导航 站点名称='设计作业' 站点编号='DDM' 站点链接='../MoEngineer/ProjectMgr.aspx' />
<站点导航 站点名称='设计流程' 站点编号='DFM' 站点链接='../MoFlow/CWorkItemList.aspx?QueueType=DFM0101' />
<站点导航 站点名称='印务管理' 站点编号='PPM' 站点链接='../MoPrint/PrintMgr.aspx?QueueType=PPM0101' />
<站点导航 站点名称='工时管理' 站点编号='WHM' 站点链接='../MoWorkHour/HourMgrPrj.aspx?QueueType=WHM0103' />
<站点导航 站点名称='电子归档' 站点编号='ARC' 站点链接='../MoArchieve/ProjectMgr.aspx?QueueType=ARC0101' />
<站点导航 站点名称='统计报表' 站点编号='SSM' 站点链接='../MoReports/ReportView.aspx?QueueType=SSM0101' />
<站点导航 站点名称='资料管理' 站点编号='DAM' 站点链接='../MoDocument/ProjectFileMgr.aspx?QueueType=DAM0101' />
<站点导航 站点名称='系统管理' 站点编号='DSM' 站点链接='../MoAdmin/CommonRuleList.aspx?QueueType=DSM0101' />
</站点导航列表>";
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
<xsl:output method="xml" indent="yes"/>
<xsl:template match="//站点导航列表">
<div>
<ul>
<li>导航</li>
<xsl:for-each select="站点导航">
<li>
<xsl:value-of select="@站点名称"/>
<xsl:attribute name="id">
<xsl:value-of select="@站点编号"/>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="@站点链接"/>
</xsl:attribute>
</li>
</xsl:for-each>
</ul>
</div>
</xsl:template>
</xsl:stylesheet>
xsl,导航
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
更新日志
- 纯音入心系列纯音乐《中央民族乐团-古筝传奇》1CD[MP3][253.1MB]
- 江玲.1989-这样你才爱我,是吗?【新作有声】【WAV+CUE】
- 郭美美.2010-我是郭美美【华纳】【WAV+CUE】
- 黄心懋1991-轻忧郁【滚石】【WAV+CUE】
- 群星.2000-大地金曲世纪回顾2CD【大地】【WAV+CUE】
- 王菲.1996-浮躁(2024环球MQA-UHQCD限量版)【环球】【WAV+CUE】
- 群星.2022-传家电视剧原声带【东阳欢娱】【FLAC分轨】
- 《摇滚教父 伍佰黄金精选 2CD》 [WAV+CUE][1GB]
- 《凤凰传奇 我从草原来》[WAV/分轨][400MB]
- 《叶倩文 真心真意过一生》[WAV+CUE][400MB]
- 潘越云.1985-世间女子(滚石25周年经典复刻版)【滚石】【WAV+CUE】
- 陈柏宇.2009-CANT.BE.HALF【SONY】【WAV+CUE】
- 李明依.1989-小女生【滚石】【WAV+CUE】
- 《李荣浩 新时代创作新人王》[WAV分轨][310MB]
- 《黑鸭子与马头琴 史上最动听草原音乐》[WAV+CUE][320MB]