Article View: pl.comp.xml
Article #830rekursywne zaglebianie sie XML-a
From: Artur Hlebowicz
Date: Fri, 09 Feb 2001 14:38
Date: Fri, 09 Feb 2001 14:38
38 lines
1870 bytes
1870 bytes
Witam
Mam taki dziwny przypadek, mianowicie:
Mam sobie jakiegos tam XML-a.
Informacje w tym XML zaglebiaja sie rekursywnie, dla jasnosci np:
<nodes>
<node attr="10" parentAttr="0" attrNumer="1"/>
<node attr="11" parentAttr="10" attrNumer="1"/>
<node attr="12" parentAttr="10" attrNumer="2"/>
<node attr="13" parentAttr="11" attrNumer="1"/>
<node attr="14" parentAttr="11" attrNumer="2"/>
<node attr="15" parentAttr="11" attrNumer="3"/>
... itd
</nodes>
w XSL-u mam gdzies:
....
<xsl:apply-templates select="//node[@parentAttr='0']" order-by="@nNumer"> //
wywolanie 1
....
<xsl:template match="//node">
.....
<xsl:apply-templates select="//node[@parentAttr=context()/@attr]"
order-by="@nNumer"> // wywolanie 2
......
</xsl:template>
No i zle sie dzieje mianowice sortowanie dziala tylko dla "wywolania 1", raz
dla "wywolania 2"
a dla kolejnych rekursywnych wywolan juz nie
Nie mam pojecia co dalej z tym fantem uczynic, moze ktos sie juz spotkal z
podobnym problemem
Thx
Artur
Technical Details
Message-ID:
<960vgq$nm9$1@pippin.nask.waw.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!warszawa.rmf.pl!news.tpi.pl!news.nask.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!warszawa.rmf.pl!news.tpi.pl!news.nask.pl!not-for-mail From: "Artur Hlebowicz" <ahlebowicz@zigzag.pl> Newsgroups: pl.comp.xml Subject: rekursywne zaglebianie sie XML-a Date: Fri, 9 Feb 2001 15:38:44 +0100 Organization: NASK - www.nask.pl Lines: 40 Message-ID: <960vgq$nm9$1@pippin.nask.waw.pl> NNTP-Posting-Host: merlin.zigzag.pl X-Trace: pippin.nask.waw.pl 981729626 24265 217.11.129.34 (9 Feb 2001 14:40:26 GMT) X-Complaints-To: usenet@nask.pl NNTP-Posting-Date: Fri, 9 Feb 2001 14:40:26 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Priority: 3 X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MSMail-Priority: Normal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit