|
Subject: Problem : search and sort From: Hans Eberle <Hans.Eberle@xxxxxxxxxx> Date: Thu, 11 May 2000 11:27:56 +0200 |
Hi all,
I hope anybody could help me.
I have a sgml-tree....
<DOC>
<MAIN>
<PH>
<WERK>
<ANZ>1</ANZ>
<SONW ANKER="LNK#16">
<BENENNUNG>blabla</BENENNUNG>
</SONW>
</WERK
<WERK>
<ANZ>1</ANZ>
<SONW ANKER="LNK#33">
<BENENNUNG>jojo</BENENNUNG>
</SONW>
</WERK
<WERK>
<ANZ>2</ANZ>
<SONW ANKER="LNK#16">
<BENENNUNG>blabla</BENENNUNG>
</SONW>
</WERK
</PH>
</MAIN>
<MAIN>
<PH>
<WERK>
<ANZ>1</ANZ>
<SONW ANKER="LNK#21">
<BENENNUNG>blabla</BENENNUNG>
</SONW>
</WERK
<WERK>
<ANZ>1</ANZ>
<SONW ANKER="LNK#33">
<BENENNUNG>jojo</BENENNUNG>
</SONW>
</WERK
<WERK>
<ANZ>1</ANZ>
<SONW ANKER="LNK#16">
<BENENNUNG>blabla</BENENNUNG>
</SONW>
</WERK
</PH>
</MAIN>
</DOC>
I'm looking for a function in a kind of this
(get-sort-subtree (current-node) "PH/WERK" "ANZ" "SONW/#ANKER")
The functionality:
- only the nodes under the current-node and PH/WERK
- sort by ANZ
- unique SONW ANKER
This function should return thr follow nodelist :
<WERK>
<ANZ>1</ANZ>
<SONW ANKER="LNK#21">
<BENENNUNG>blabla</BENENNUNG>
</SONW>
</WERK
<WERK>
<ANZ>1</ANZ>
<SONW ANKER="LNK#33">
<BENENNUNG>jojo</BENENNUNG>
</SONW>
</WERK
<WERK>
<ANZ>2</ANZ>
<SONW ANKER="LNK#16">
<BENENNUNG>blabla</BENENNUNG>
</SONW>
</WERK
thanks a lot
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Jade & CLSID, Brian Keck | Thread | Re: Problem : search and sort, Jany Quintard |
| Re: How to page-reference a node wh, Peter Nilsson | Date | sgml-parse question, Kathie Drake |
| Month |