Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Tue, 27 May 2008 11:56:03 -0700,    group: microsoft.public.xsl        back       


Get specific Nodes using XSL   
Hello,
I have a XMl as below:

*******************
<?xml version="1.0" ?> 
<p1:Domains_and_Emails xmlns:p1="LDAP">
  <Organization>ABCD</Organization>
  <Radius Suspended="false" ID="1" Platform_Id="7" 
ObjectClass="radiusprofile">
    <Common_Name>OptiUser</Common_Name>
    <radiusProfileDn>cn=dialup,ou=radiusprofiles,o=ABCD</radiusProfileDn>
  </Radius>
  <Domain Suspended="false" ID="2" Platform_Id="7">
    <Organization_Unit>domains</Organization_Unit>
    <domain_name>xyztel.com</domain_name>

    <UnixEmail Suspended="false" ID="3" Platform_Id="7" 
ObjectClass="radiusprofile,posixAccount,CourierMailAccount">
      <uid>info</uid>
      <Password>xyz</Password>
      <EmailAccount>info@xyztel.com</EmailAccount>
    </UnixEmail>

    <UnixEmail Suspended="false" ID="4" Platform_Id="7" 
ObjectClass="radiusprofile,posixAccount,CourierMailAccount">
      <uid attributeId="1">jeff</uid>
      <Password attributeId="4">xyz</Password>
      <EmailAccount>jeff@xyztel.com</EmailAccount>
    </UnixEmail>

    <UnixEmail Suspended="false" ID="72" Platform_Id="7" 
ObjectClass="radiusprofile,posixAccount,CourierMailAccount">
      <uid attributeId="1">ff</uid>
      <Password attributeId="4">xyz</Password>
      <EmailAccount>ff@xyztel.com</EmailAccount>
    </UnixEmail>

  </Domain>

</p1:Domains_and_Emails>
*******************

Using a XSL template, how to get ONLY the node UnixEmail with attribute ID 
value = 4 PLUS ALL OTHER NODES (such as  <Organization>)

Thanks,
Ganesh
date: Tue, 27 May 2008 11:56:03 -0700   author:   Ganesh Muthuvelu

Re: Get specific Nodes using XSL   
U¿ytkownik "Ganesh Muthuvelu"  
napisa³ w wiadomo¶ci 
news:9BD98500-024A-464F-A995-DCA659F1650B@microsoft.com...
> Using a XSL template, how to get ONLY the node UnixEmail with attribute ID
> value = 4 PLUS ALL OTHER NODES (such as  <Organization>)

UnixEmail[@ID=4] | *[name()!='UnixEmail']

-- 
td
date: Wed, 28 May 2008 09:46:19 +0200   author:   TOUDIdel

Re: Get specific Nodes using XSL   
Can you please post me the complete XSL?

Thanks,
Ganesh

"TOUDIdel" wrote:

> 
> U¿ytkownik "Ganesh Muthuvelu"  
> napisa³ w wiadomo¶ci 
> news:9BD98500-024A-464F-A995-DCA659F1650B@microsoft.com...
> > Using a XSL template, how to get ONLY the node UnixEmail with attribute ID
> > value = 4 PLUS ALL OTHER NODES (such as  <Organization>)
> 
> UnixEmail[@ID=4] | *[name()!='UnixEmail']
> 
> -- 
> td 
> 
> 
>
date: Wed, 28 May 2008 09:13:00 -0700   author:   Ganesh Muthuvelu

Re: Get specific Nodes using XSL   
U¿ytkownik "Ganesh Muthuvelu"  
napisa³ w wiadomo¶ci 
news:4F5B21E7-4E10-4697-A930-2C88BE73CA3B@microsoft.com...
> Can you please post me the complete XSL?

...it depends what you want to do...
<xsl:apply-templates select="UnixEmail[@ID=4] | *[name()!='UnixEmail']"/>
-- 
td
date: Thu, 29 May 2008 08:23:38 +0200   author:   TOUDIdel

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us