XSLT wybranie node'ów odpowiadaj±cych innym node'om
[ Nouvelle discussion
| Répondre au groupe
|
pl.comp.xml ]
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/

|
 cette fonctionnalité est reservée aux membres ayant une session active !
|