+ -
当前位置:首页 → 问答吧 → 怎么把.xml中的数据应用到.xsl中?(菜鸟问题)

怎么把.xml中的数据应用到.xsl中?(菜鸟问题)

时间:2003-06-05

来源:互联网

其中:
a.xml:


<?xml version="1.0" standalone="yes"?>
<DATAPACKET Version="2.0"><METADATA><FIELDS>
<FIELD attrname="xmid" fieldtype="i4" readonly="true" SUBTYPE="Autoinc"/>
<FIELD attrname="xmmc" fieldtype="string" WIDTH="200"/>
<FIELD attrname="jydw" fieldtype="string" WIDTH="50"/>
<FIELD attrname="lxr" fieldtype="string" WIDTH="20"/>
<FIELD attrname="lxdh" fieldtype="string" WIDTH="20"/>
<FIELD attrname="xmlb" fieldtype="string" WIDTH="10"/>
<FIELD attrname="jsly" fieldtype="string" WIDTH="40"/>
<FIELD attrname="xmjj" fieldtype="string" WIDTH="400"/>
<FIELD attrname="tbrq" fieldtype="dateTime"/>
<FIELD attrname="jhlb" fieldtype="string" WIDTH="40"/>
<FIELD attrname="lxdz" fieldtype="string" WIDTH="400"/>
<FIELD attrname="glyid" fieldtype="i4"/></FIELDS>
<PARAMS CHANGE_LOG="1 0 4 2 1 8"/></METADATA>
<ROWDATA><ROW RowState="5"/>
<ROW RowState="12" xmmc="123" jydw="123" lxr="12" lxdh="12" xmlb="重点" jsly="生物医药" xmjj="123123" lxdz="12"/></ROWDATA></DATAPACKET>


我想把其中各项值取出来,在HTML中显示,请问我的xsl该怎么写?

作者: ctin   发布时间: 2003-06-05

xsl 是直接生成 html 的

作者: snakevil   发布时间: 2003-06-05