xsl-list
[Top] [All Lists]

Re: xpath notation - and operator

2005-01-25 00:11:08


Hi,
     The logical operator 'and' should work just fine. You may however not
have your braces properly nested.

If  you are checking the value of count against something, then you haven't
got that in your code right now.
You may also use braces to group your expressions just for eg. ( a < b ) or
( c > d ) etc.

Regards,
Omprakash.V







                                                                                
                                  
                    "Markus                                                     
                                  
                    Hanel"               To:     
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com                                
  
                    <markus.hanel        cc:     (bcc: omprakash.v/Polaris)     
                                  
                    @gmx.at>             Subject:     [xsl] xpath notation - 
and operator                         
                                                                                
                                  
                    01/25/2005                                                  
                                  
                    12:31 PM                                                    
                                  
                    Please                                                      
                                  
                    respond to                                                  
                                  
                    xsl-list                                                    
                                  
                                                                                
                                  
                                                                                
                                  




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(_dot_)hanel(_at_)gmx(_dot_)at
----------------------------

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--






This e-Mail may contain proprietary and confidential information and is sent 
for the intended recipient(s) only.
If by an addressing or transmission error this mail has been misdirected to 
you, you are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, 
dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its 
attachment other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>