以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XSL/XSLT/XSL-FO/CSS 』  (http://bbs.xml.org.cn/list.asp?boardid=8)
----  谁知道这样的xml怎样用xsl输出,最好给讲讲??  (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=6205)


--  作者:296458
--  发布时间:3/25/2004 3:46:00 PM

--  谁知道这样的xml怎样用xsl输出,最好给讲讲??
<?xml version="1.0"?>
<a:multistatus xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" xmlns:f="urn:schemas:httpmail:" xmlns:c="xml:" xmlns:d="http://schemas.microsoft.com/exchange/" xmlns:e="http://schemas.microsoft.com/repl/" xmlns:g="urn:schemas:calendar:" xmlns:h="urn:schemas:contacts:" xmlns:a="DAV:">
 <a:response>
  <a:href>http://nmcexch/exchange/lntrans/%E6%97%A5%E5%8E%86/test.EML</a:href>
  <a:propstat>
   <a:status>HTTP/1.1 200 OK</a:status>
   <a:prop>
     <a:contentclass>urn:content-classes:appointment</a:contentclass>
     <a:creationdate b:dt="dateTime.tz">2004-03-25T05:34:30.908Z</a:creationdate>
     <a:displayname>test.EML</a:displayname>
     <a:getlastmodified b:dt="dateTime.tz">2004-03-25T05:34:51.698Z</a:getlastmodified>
     <a:href>http://nmcexch/exchange/lntrans/%E6%97%A5%E5%8E%86/test.EML</a:href>
     <a:iscollection b:dt="boolean">0</a:iscollection>
     <a:ishidden b:dt="boolean">0</a:ishidden>
     <a:parentname>http://nmcexch/exchange/lntrans/%E6%97%A5%E5%8E%86/</a:parentname>
     <g:lastmodifiedtime b:dt="dateTime.tz">2004-03-25T05:34:51.698Z</g:lastmodifiedtime>
     <e:resourcetag>rt:be07a8b6480df749ad1335a3f0c4d5100001de7a0601e9980dae9c56cf40b2b0e883faf794ff0000016cccc1</e:resourcetag>
   </a:prop>
   </a:propstat><a:propstat>
   <a:status>HTTP/1.1 404 Resource Not Found</a:status>
   <a:prop>
     <a:hassubs/>
     <d:outlookfolderclass/>
     <d:summary-utf8/>
     <e:contenttag/>
     <f:unreadcount/>
     <h:cn/>
   </a:prop>
  </a:propstat>
 </a:response>
</a:multistatus>

--  作者:ssm1226
--  发布时间:3/25/2004 6:06:00 PM

--  
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" xmlns:f="urn:schemas:httpmail:" xmlns:c="xml:" xmlns:d="http://schemas.microsoft.com/exchange/" xmlns:e="http://schemas.microsoft.com/repl/" xmlns:g="urn:schemas:calendar:" xmlns:h="urn:schemas:contacts:" xmlns:a="DAV:">
<xsl:template match="/">
 <xsl:apply-templates select="//a:prop"/>
</xsl:template>
<xsl:template match="a:prop">
 <xsl:for-each select="*">
  <xsl:value-of select="name()"/> --
  <xsl:value-of select="."/>
  <br/>
 </xsl:for-each>
</xsl:template>
</xsl:stylesheet>

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