Subject: [xsl] How do match/compare nodes? From: vbarnard@xxxxxxxxxxxxx Date: Fri, 16 Jan 2004 10:00:26 +0000 |
Hi I am a bit confused how to tackle my problem and hope someone will be able to give me a few pointers how to get started at least. I want to read in the xml file which contains two maps and if a particular node matches then I want to print out both maps in one line with elements separated by a pipe (|) symbol, if they don't match then I will ignore the result. The node I want to match is "map/assignment/marker/name" The is the relevant part of my xml code: <map id="0"> <name>Setaria-Wild-I</name> <species>Setaria italica</species> <lower_extent>21.7</lower_extent> <upper_extent>151.5</upper_extent> <assignment> <marker> <name>Xrgc285</name> <homology_group>C285</homology_group> </marker> <position>38</position> </assignment> </map> <map id="1"> <name>Pennisetum-Lx1-7</name> <species>Pennisetum glaucum</species> <lower_extent>50</lower_extent> <upper_extent>151.5</upper_extent> <assignment> <marker> <name>Xrgc285</name> <homology_group>C285</homology_group> </marker> <position>24</position> </assignment> </map> Many thanks in advance, Virginia XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] The real harm is in funct, Joshua Allen | Thread | [xsl] RXPath, bry |
RE: [xsl] Can one stylesheet handle, Michael Kay | Date | [xsl] RXPath, bry |
Month |