以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 XML基础 』 (http://bbs.xml.org.cn/list.asp?boardid=1) ---- 下面这段,如何改成一行两列显示??急啊,帮帮我 (http://bbs.xml.org.cn/dispbbs.asp?boardid=1&rootid=&id=65980) |
-- 作者:zgxjxy -- 发布时间:8/16/2008 9:25:00 PM -- 下面这段,如何改成一行两列显示??急啊,帮帮我 <?xml version="1.0" encoding="utf-8"?> <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe"> <xsl:output method="html" /> <xsl:param name="titlelen" /> <xsl:template match="/NewDataSet"> <xsl:choose> <xsl:when test="count(Table)=0"> <ul> <li>该专题无内容!</li> </ul> </xsl:when> <xsl:otherwise> <ul> <xsl:for-each select="Table"> <li> <a> <xsl:attribute name="href"> <xsl:value-of select="GetSpecialPath(SpecialID)"/> </xsl:attribute> <xsl:attribute name="target"> <xsl:choose> <xsl:when test="OpenType=0"> _self </xsl:when> <xsl:otherwise> _blank </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:value-of select="CutText(SpecialName,$titlelen,'...')"/> </a> </li> </xsl:for-each> </ul> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:transform> |
-- 作者:Qr -- 发布时间:8/17/2008 9:54:00 AM -- 如果用ul&li,跟XSL没有关系,用CSS来定位 |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
35.156ms |