Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting a value using XSL 1

Status
Not open for further replies.

berkshirea

Technical User
Mar 22, 2009
97
GB
Hi guys, can you give me an idea how to get the value of 'OrganisationId' using XSL? I've been trying but can't get my head round it.

Thanks for your help.

Code:
<?xml version="1.0" encoding="utf-8" ?> 
<Organisation xmlns:i="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance"[/URL] xmlns="[URL unfurl="true"]http://schemas.data.org/2003/07/company.Syndication.Resource.Org">[/URL]
  <Fax>1232 566754</Fax> 
  <Latitude>11.908138275146484</Latitude> 
  <Longitude>-111.4089328050613403</Longitude> 
  <ModifiedDate>2014-12-11T08:27:56.367</ModifiedDate> 
  <Name>Nice View</Name> 
  <Northing>0</Northing> 
  <OdsCode>B1234</OdsCode> 
  <OrganisationId>789</OrganisationId> 
  <OrganisationTypeId i:nil="true" /> 
.
.
.
</Organisation>
 
In the appropriate spot in your unshown XSL:
Code:
<xsl:value-of select="/Organisation/OrganisationId"/>

Tom Morrison
Hill Country Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top