xsl-list
[Top] [All Lists]

Re: XPath Query Required

2005-06-01 00:46:00
Hi,

    Thankx Borut. this list is realy great place to find any XSL XML help
:), Good Luck For u people.

Bye.
qAZI aSIM
----- Original Message -----
From: "Borut Bolčina" <bob(_at_)najdi(_dot_)si>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Wednesday, June 01, 2005 11:10 AM
Subject: Re: [xsl] XPath Query Required


Hi,

if you have this XML (if I understand your question):
<root>
    <get-roleservices-recordrow>
    <get-roleservices-RoleID>1</get-roleservices-RoleID>
    <get-roleservices-ResourceID>6</get-roleservices-ResourceID>

<get-roleservices-IsWindowsEnabled>False</get-roleservices-IsWindowsEnabled>

<get-roleservices-IsLinuxEnabled>True</get-roleservices-IsLinuxEnabled>
    </get-roleservices-recordrow>
    <get-roleservices-recordrow>
        <get-roleservices-RoleID>1</get-roleservices-RoleID>
        <get-roleservices-ResourceID>4</get-roleservices-ResourceID>

<get-roleservices-IsWindowsEnabled>False</get-roleservices-IsWindowsEnabled>

<get-roleservices-IsLinuxEnabled>True</get-roleservices-IsLinuxEnabled>
    </get-roleservices-recordrow>
    <get-roleservices-recordrow>
        <get-roleservices-RoleID>1</get-roleservices-RoleID>
        <get-roleservices-ResourceID>6</get-roleservices-ResourceID>

<get-roleservices-IsWindowsEnabled>True</get-roleservices-IsWindowsEnabled>

<get-roleservices-IsLinuxEnabled>True</get-roleservices-IsLinuxEnabled>
    </get-roleservices-recordrow>
    <get-roleservices-recordrow>
        <get-roleservices-RoleID>1</get-roleservices-RoleID>
        <get-roleservices-ResourceID>9</get-roleservices-ResourceID>

<get-roleservices-IsWindowsEnabled>False</get-roleservices-IsWindowsEnabled>

<get-roleservices-IsLinuxEnabled>True</get-roleservices-IsLinuxEnabled>
    </get-roleservices-recordrow>
</root>

than this xpath

root/get-roleservices-recordrow[get-roleservices-RoleID='1' and
get-roleservices-ResourceID='6']/get-roleservices-IsWindowsEnabled

will select two "records".

So, the answer is - yes, it will.

-Borut



On 1.6.2005 6:59, Asim Qazi wrote:

Hi Borut,
   Thankx for the Quick reply,

i m sorry i missed in thing the "<get-roleservices-recordrow>" node will
b
repeating with different combinations of RoleID and ResourceID,

will this query would b same even for repeating nodes ??

qAZI aSIM.




----- Original Message -----
From: "Borut Bolčina" <bob(_at_)najdi(_dot_)si>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Tuesday, May 31, 2005 5:21 PM
Subject: Re: [xsl] XPath Query Required




In short:

get-roleservices-recordrow[get-roleservices-RoleID='1' and
get-roleservices-ResourceID='6']/get-roleservices-IsWindowsEnabled

-Borut

On 31.5.2005 14:13, Asim Qazi wrote:



Hi All
  <get-roleservices-recordrow>
<get-roleservices-RoleID>1</get-roleservices-RoleID>
<get-roleservices-ResourceID>6</get-roleservices-ResourceID>




<get-roleservices-IsWindowsEnabled>False</get-roleservices-IsWindowsEnable
d



<get-roleservices-IsLinuxEnabled>True</get-roleservices-IsLinuxEnabled>
</get-roleservices-recordrow>



this is my xml strcture i want to read the value of
"get-roleservices-IsWindowsEnabled" where get-roleservices-RoleID=1 and
get-roleservices-ResourceID=6

thankx in advance.
Qazi Asim


--~------------------------------------------------------------------
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>
--~--





--~------------------------------------------------------------------
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>
--~--





--~------------------------------------------------------------------
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>
--~--




--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>