Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 514245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:30:17+00:00 2026-05-13T07:30:17+00:00

I am trying to display xml data in html via XSLT. I am building

  • 0

I am trying to display xml data in html via XSLT.

I am building a simple html table that displays a Name, Address, & Phone Number.

The XSL template pulls the Name & Phone Number, but for some reason, it won’t grab the Address.

<?xml-stylesheet type="text/xsl" href="testreport.xsl"?>
<BpsReportResponse>
   <Individual>
      <HistoricalNeighbors>
        <Neighborhood>
            <NeighborAddresses>
               <NeighborAddress>
                  <Address>
                     <StreetName>SOMESTREET</StreetName>
                     <City>SOMECITY</City>
                     <County>SOMECOUNTY</County>
                     <State>NJ</State>
                     <StreetNumber>999</StreetNumber>
                     <Zip5>00000</Zip5>
                     <Zip4>0000</Zip4>
                     <StreetSuffix>ST</StreetSuffix>
                  </Address>
                  <DateLastSeen>
                     <Year>2008</Year>
                  </DateLastSeen>
                  <DateFirstSeen>
                     <Month>3</Month>
                     <Year>1996</Year>
                  </DateFirstSeen>
                  <Residents>
                     <Identity>
                        <Name>
                           <Last>DOE</Last>
                           <First>JANE</First>
                        </Name>
                        <UniqueId>00000000000</UniqueId>
                     </Identity>
                  </Residents>
                  <LocationId></LocationId>
                  <Phones>
                     <Phone>
                        <Phone10>9999999999</Phone10>
                     </Phone>
                  </Phones>
               </NeighborAddress>               
            </NeighborAddresses>
         </Neighborhood>
      </HistoricalNeighbors>
   </Individual>   
</BpsReportResponse>

testreport.xsl

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="BpsReportResponse/Individual"> 
    <html>
    <head>
        <link rel="stylesheet" type="text/css" href="stylesheet.css" />

    </head>
    <body> 

        <div id="neighbors">
            <table>
                <tr class="header"><td colspan="3">Neighbors</td></tr>
                <tr class="subheader">
                    <td>Name</td>
                    <td>Address</td>
                    <td>Phone</td>
                </tr>
                <xsl:for-each select="HistoricalNeighbors/Neighborhood/NeighborAddresses/NeighborAddress">
                    <tr>                        
                        <td>                            
                            <xsl:value-of select="Residents/Identity/Name/First"/>&#160;<xsl:value-of select="Residents/Identity/Name/Middle"/>&#160;<xsl:value-of select="Residents/Identity/Name/Last"/> 
                        </td>
                        <td>                    
                            <xsl-value-of select="Address/StreetNumber"/>&#160;<xsl-value-of select="Address/StreetName"/>&#160;<xsl-value-of select="Address/StreetSuffix"/>, 
                            <xsl-value-of select="Address/City"/>,&#160;<xsl-value-of select="Address/State"/>&#160;<xsl-value-of select="Address/Zip5"/>
                        </td>
                        <td><xsl:value-of select="Phones/Phone/Phone10"/></td>
                    </tr>
                </xsl:for-each>
            </table>
        </div>

    </body>
    </html>     
</xsl:template>
</xsl:stylesheet>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T07:30:18+00:00Added an answer on May 13, 2026 at 7:30 am

    You did xsl-value-of instead of xsl:value-of for the address elements.

    Go get Xselerator from Sourceforge, it is an awesome tool for doing stuff like this. I copied and pasted your stuff into it and I saw the error immediately.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to display a pie chart that shows sales by company. However
I'm trying to display an address right aligned in the footer of my page
I am trying to create an ajax request to a WebService that returns data
I am trying to access an online XML file and display it's contents within
I am trying to make a Xml Image Menu that on button click goes
Hey guys. I'm trying to parse xml file in order to extract some data
When trying to display a byte stream from HLDS (Half-Life Dedicated Server) in a
I've been trying to display text using a Quartz context, but no matter what
I'm trying to display a series of titles varying from 60 characters to 160
I am trying to display a list of all files found in the selected

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.