🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.xml
Article #7421

xsl��������ʹ��ʵ��������ܰ�.

#7421
From: ®ɽ�����
Date: Sun, 20 Jul 2003 02:19
40 lines
1882 bytes
test.xml:
<root>
..
  <classes>
..
    <class>
..
      <details>
        <detail>
          <item_tag>summary</item_tag>
          <item_name>show</item_name>
          <item_value>that</item_value>
        </detail>
        <detail>
          <item_tag>antetype</item_tag>
          <item_name>show</item_name>
          <item_value>this</item_value>
        </detail>
        ������
      </details>
<class>
<classes>
</root>

��������xsl�ļ����£�
����������
         <xsl:for-each select="detail[$any$ (item_tag='summary')]">
         <xsl:value-of select="item_name"/>
         </xsl:for-each>
         �ڴ˴���Ҫ��������item_name��detail�в�Ѱ<item_tag>
         ������'antetype'����<item_name>�������<item_name>��ֵ��
         �ڴ˴�д�ϲ��ҵ���<item_value>.

�Ҹ��������
лл�ˡ�


--

�� ��Դ:��BBS ˮľ�廪վ smth.org��[FROM: 202.118.75.64]
Technical Details
Message-ID: <000000$EqR@smth.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!maily.cic.tsinghua.edu.cn!SMTH

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: 115571,f7295986e2d139c8,start
X-Google-Attributes: gid115571,public
X-Google-ArrivalTime: 2003-07-19 19:22:08 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!maily.cic.tsinghua.edu.cn!SMTH
From: zvictor@smth.org (®ɽ�����)
Newsgroups: cn.bbs.comp.xml
Subject: xsl��������ʹ��ʵ��������ܰ�.
Date: 20 Jul 2003 02:19:45 GMT
Organization: BBS ˮľ�廪վ
Message-ID: <000000$EqR@smth.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: XML/E/M.1058667553.s0
Lines: 40