[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xpath notation - and operator

Subject: xpath notation - and operator
From: "Markus Hanel" <markus.hanel@xxxxxx>
Date: Tue, 25 Jan 2005 08:01:40 +0100 (MET)
xpath notation
hello,

I want to count the following-sibling nodes "pers_data" in an xml file,
which have two elements given by variables; the categories change also,
therefore they are also given as variables.
for example: all pers_data nodes, which have the division "Innenausbau" and
the group "group1"

<xsl:if
test="count(following-sibling::pers_data[document(./url/@path)/pers_data/*[name()=
$category] = $element and *[name()= $category_before] = $element_before])">

I am not shore that the and operator has the rigth notation. Can anyone give
my an help to solve the problem?
many thanks,
markus

xml file
<node label="interviewees" status="active" type="interviewee">
  <pers_data id="2" status="active" task="interviewee">
    <url path="/quirxi/qpers_data/2.xml" proto="file"/>
  </pers_data>
  <pers_data id="3" status="active" task="interviewee">
    <url path="/quirxi/qpers_data/3.xml" proto="file"/>
  </pers_data>
  <pers_data id="4" status="active" task="interviewee">
    <url path="/quirxi/qpers_data/4.xml" proto="file"/>
  </pers_data>
  ...
</node>

the pers_data files look like
<pers_data task="interviewee" id="2" status="active">
<surname>Martin</surname>
<lastname>Maierunteregger</lastname>
<group>group1</group>
<division>Innenausbau</division>
<school>htl imst</school>
<userid>c</userid>
<pass>c</pass>
<sex>m</sex>
</pers_data>


-- 
-----------------------------
Mag. Markus Hanel
Rottweilerstra_e 29
A-6460 IMST
0650 - 7847941
markus.hanel@xxxxxx
----------------------------

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.