以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XSL/XSLT/XSL-FO/CSS 』  (http://bbs.xml.org.cn/list.asp?boardid=8)
----  [原创]  (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=43432)


--  作者:chen85cong
--  发布时间:2/26/2007 3:26:00 PM

--  [原创]
<Question type="SingleChoice">
 <Topic>
  <Title></Title>
  <Attachments>
  </Attachments>
 </Topic>
 <Keys>A</Keys>
</Question>

用<xsl:if>怎样判断<Question type="SingleChoice">中type的值呢?


--  作者:hexun831012
--  发布时间:2/26/2007 3:32:00 PM

--  
<xsl:template match="Question">
  <xsl:if test="type='SingleChoice'">
    ...
   </xsl:if>
   ...
</xsl:template>
--  作者:Qr
--  发布时间:2/26/2007 5:17:00 PM

--  
应该是:<xsl:if test="@type='SingleChoice'">
--  作者:hexun831012
--  发布时间:2/27/2007 9:15:00 AM

--  
不好意思,笔误
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
62.500ms