[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Merging attribute values to unique list
Subject: [xsl] Merging attribute values to unique list From: James Cummings <James.Cummings@xxxxxxxxx> Date: Fri, 1 Aug 2003 12:16:37 +0100 (BST) |
Hi there, This is similar to something I asked months ago, and you'd think I'd be able to figure it out but... assuming you have a file like> <foo id="a1"> <body wit="A B E D">some stuff</body> <body wit="C A G">some other stuff</body> </foo> What I want to produce is a list of links one for each unique witness, so in this case something like: <p>See the reading for: <a href="foo/a1.xml?wit="A">A</a> <a href="foo/a1.xml?wit="B">B</a> <a href="foo/a1.xml?wit="C">C</a> <a href="foo/a1.xml?wit="D">D</a> <a href="foo/a1.xml?wit="E">E</a> <a href="foo/a1.xml?wit="G">G</a> </p> So, I'm assuming what needs to happen is that I need to somehow produce a list of each of the tokenized contents of //body/@wit which are then sorted and made unique. Any suggestions on how to go about this using Xalan inside cocoon-2.1? I.e. I have some ideas on how to do it with saxon extensions/xslt 2.0, but not inside cocoon. Any suggestions appreciated! -James -- Dr James Cummings, James.Cummings@xxxxxxxxx, http://www.uea.ac.uk/~q503 Cursus Project, School of Music, University of East Anglia, Norwich, Norfolk, NR4 7TJ, UK Tel:(01603)593-595 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Variables, AROSO Jose Antonio | Thread | RE: [xsl] Merging attribute values , Américo Albuquerque |
RE: [xsl] Variables, Jeff Beadle | Date | Re: [xsl] Variables, Mukul Gandhi |
Month |