Subject: Re: [xsl] Selecting Nodes by nodeset comparison From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 12 Apr 2005 12:52:37 +0100 |
> Is the following Xpath correct? without seeing the input documents or a description of what you are trying to match, how are we to say? You would be better to post a complete but simplified example with just two or three attributes, and three or four elements in each document so that you can post the entire thing and say what output you want, and what output you got. Guessing from the structure of your xpaths I assume that the files have a single top level EintrdgeListe element and more than one child Eintrag elements. the test @Datum=$input_Manual_Stunde/Eintrag/@BZ_Abgangsdatum tests if the Datum attribute in this Eintrag element is equal to _any_ BZ_Abgangsdatum attribute in the other element. I can't say if that's correct or not as I don't know what you intend. substring(@Zeit,1,2)=substring($input_Manual_Stunde/Eintrag/@BZ_Zeit,1,2) Is almost certainly incorrect as it tests if the first part of the @Zeit attribute is equal to the first part of the first @BZ_Zeit attribute in the other document. (It only tests the first @BZ_Zeit in document order as substring() requires a string as its first argument and in common with other string functions converts a node set to a string by taking the string value of the first node and ignoring all others. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Selecting Nodes by nodeset co, michella | Thread | AW: [xsl] Selecting Nodes by nodese, michella |
[xsl] Selecting Nodes by nodeset co, michella | Date | AW: [xsl] Selecting Nodes by nodese, michella |
Month |