Article View: pl.comp.xml
Article #9753XSLT wybranie node'ów odpowiadających innym node'om
From: zbyszek malec
Date: Thu, 13 Mar 2008 12:02
Date: Thu, 13 Mar 2008 12:02
31 lines
1518 bytes
1518 bytes
Witam Mam następujący dokument xml: <data> <usages> <usage table="A"/> <usage table="B"/> </usages> <tables> <table name="A"/> <table name="B"/> <table name="C"/> </tables> </data> Teraz chciałbym napisać takie XSLT żeby mi wybrało elementy z tables takie, które występują w elementach usage, tzn. takie że atrybut table w usage jest taki sam jak atrybut name w table. Nie bardzo mam pomysł jak to zrobić. Próbowałem coś na kształt: <xsl:for-each select="tables/table[count(usages/usage[@table=@name])=0]"> </xsl:for-each> ale jak widać bez powodzenia. Da się to zrobić w XSLT? Pozdrawiam Zbyszek Malec -- Wysłano z serwisu Usenet w portalu Gazeta.pl -> http://www.gazeta.pl/usenet/
Technical Details
Message-ID:
<frb54a$gcc$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: "zbyszek malec" <zbyszanna@gazeta.SKASUJ-TO.pl> Newsgroups: pl.comp.xml Subject: XSLT wybranie node'ów odpowiadających innym node'om Date: Thu, 13 Mar 2008 12:02:18 +0000 (UTC) Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 31 Message-ID: <frb54a$gcc$1@inews.gazeta.pl> NNTP-Posting-Host: localhost X-Trace: inews.gazeta.pl 1205409738 16780 172.20.26.237 (13 Mar 2008 12:02:18 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Thu, 13 Mar 2008 12:02:18 +0000 (UTC) X-User: zbyszanna X-Forwarded-For: 194.29.137.43 X-Remote-IP: localhost MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit