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 8691279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:05:34+00:00 2026-06-13T00:05:34+00:00

I am trying to learn XSLT and having some issues. I would think that

  • 0

I am trying to learn XSLT and having some issues. I would think that this line <xsl:template match="response/results"> would limit the xlst process to only those elements within the <results> element???

There are some initial values being output by this and I can’t figure out why. In the results below, you will see the following at the beginning of the results:

manhattan WMOS
true
false
60
1
10
0

XML:

<?xml version="1.0" encoding="UTF-8" ?>
<response version="2">
    <query>manhattan WMOS</query>
    <location></location>
    <dupefilter>true</dupefilter>
    <highlight>false</highlight>
    <totalresults>60</totalresults>
    <start>1</start>
    <end>10</end>
    <pageNumber>0</pageNumber>
    <results>
        <result>
            <jobtitle>Manhattan Associates WMoS QA Analyst</jobtitle>
            <company>CMAC Inc</company>
            <city>Asheville</city>
            <state>NC</state>
            <country>US</country>
            <formattedLocation>Asheville, NC</formattedLocation>
            <source>JobServe USA</source>
            <date>Thu, 11 Oct 2012 15:20:31 GMT</date>
            <snippet>Manhattan Associtates WMoS Loads of Documentation and detail required for this position Immediate opening for 2 Senior QA Analysts Project: Manhattan (WMOS... </snippet>
            <url>http://www.indeed.com/viewjob?jk=06bef17e206740d3&amp;qd=Cg_V6UykGXt-ccaEWxs0BA1LyorWd-7Tcbya1NtZKa9WZ1DtngXSHw91EGjVCy_rntA_Y_5cpbSuoLd44_xEjXNG-vBD0DC792zHqZRp6lE&amp;indpubnum=1813651566614396&amp;atk=179li835k18b17ae</url>
            <onmousedown>indeed_clk(this, &#039;5585&#039;);</onmousedown>
            <jobkey>06bef17e206740d3</jobkey>
            <sponsored>false</sponsored>
            <expired>false</expired>
            <formattedLocationFull>Asheville, NC</formattedLocationFull>
            <formattedRelativeTime>5 days ago</formattedRelativeTime>
        </result>
        <result>
            <jobtitle>Software Analyst - WMOS</jobtitle>
            <company>Manhattan Associates</company>
            <city>Atlanta</city>
            <state>GA</state>
            <country>US</country>
            <formattedLocation>Atlanta, GA</formattedLocation>
            <source>Manhattan Associates</source>
            <date>Mon, 01 Oct 2012 21:02:50 GMT</date>
            <snippet>innovations include: Manhattan SCOPE® a portfolio of... Position open in Atlanta Office. About Manhattan Associates:  Manhattan Associates is at the forefront of... </snippet>
            <url>http://www.indeed.com/viewjob?jk=a17a7c578a779db8&amp;qd=Cg_V6UykGXt-ccaEWxs0BA1LyorWd-7Tcbya1NtZKa9WZ1DtngXSHw91EGjVCy_rntA_Y_5cpbSuoLd44_xEjXNG-vBD0DC792zHqZRp6lE&amp;indpubnum=1813651566614396&amp;atk=179li835k18b17ae</url>
            <onmousedown>indeed_clk(this, &#039;5585&#039;);</onmousedown>
            <jobkey>a17a7c578a779db8</jobkey>
            <sponsored>false</sponsored>
            <expired>false</expired>
            <formattedLocationFull>Atlanta, GA</formattedLocationFull>
            <formattedRelativeTime>14 days ago</formattedRelativeTime>
        </result>

XSLT:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:param name="ItemsToShow" select="'2'"/>
<xsl:param name="ShowItemDetails" select="'true'"/>
<xsl:param name="ShowItemDate" select="'true'"/>
<xsl:param name="Locale"/>
<xsl:param name="Target"/>
  <xsl:variable name="apos">'</xsl:variable>

<xsl:template name="google_analytics_event_tracking">
    <xsl:param name="link_category" />
    <xsl:param name="link_sub_category" />
     <xsl:param name="link_data" />

  <xsl:value-of select="concat('_gaq.push([', $apos, '_trackEvent', $apos, ',', $apos, $link_category, $apos, ',', $apos, $link_sub_category, $apos, ',', $apos, $link_data, $apos,')]')" />
</xsl:template>
  <xsl:template match="response/results">
    <xsl:for-each select="result[position()&lt;=$ItemsToShow or $ItemsToShow&lt;1]">
        <xsl:variable name="jobOutboundLinkAction">
            <xsl:call-template name="google_analytics_event_tracking">
                <xsl:with-param name="link_category" select="'indeed.com'" />
                <xsl:with-param name="link_sub_category" select="'none'" />
                <xsl:with-param name="link_data" select="url" />
            </xsl:call-template>
        </xsl:variable>
        <div class="jobWrapper">
            <div class="jobTitle">
                <a href="{url}">
                    <xsl:attribute name="target">
                        <xsl:value-of select="$Target"/>
                    </xsl:attribute>
                    <xsl:attribute name="onclick">
                        <xsl:value-of select="$jobOutboundLinkAction"/>
                    </xsl:attribute>
                    <xsl:value-of select="jobtitle"/>
                </a>
            </div>
            <xsl:if test="$ShowItemDate='true'">
                <h6>
                    <xsl:value-of select="date"/>
                </h6>
            </xsl:if>
            <xsl:if test="$ShowItemDetails='true'">
                Company: <xsl:value-of select="company" disable-output-escaping="yes"/>
                <br />
                <xsl:value-of select="formattedLocation" disable-output-escaping="yes"/>
                <br />
                <p>
                    <xsl:value-of select="snippet" disable-output-escaping="yes"/>
                </p>
            </xsl:if>
            <div class="cleaner"></div>
        </div>
    </xsl:for-each>
</xsl:template>
</xsl:stylesheet>

Output:

manhattan WMOS
true
false
60
1
10
0
<div class="jobWrapper">
    <div class="jobTitle">
        <a href="http://www.indeed.com/viewjob?jk=06bef17e206740d3&amp;qd=Cg_V6UykGXt-ccaEWxs0BA1LyorWd-7Tcbya1NtZKa9WZ1DtngXSHw91EGjVCy_rntA_Y_5cpbSuoLd44_xEjXNG-vBD0DC792zHqZRp6lE&amp;indpubnum=1813651566614396&amp;atk=179li835k18b17ae" target="" onclick="_gaq.push(['_trackEvent','indeed.com','none','http://www.indeed.com/viewjob?jk=06bef17e206740d3&amp;qd=Cg_V6UykGXt-ccaEWxs0BA1LyorWd-7Tcbya1NtZKa9WZ1DtngXSHw91EGjVCy_rntA_Y_5cpbSuoLd44_xEjXNG-vBD0DC792zHqZRp6lE&amp;indpubnum=1813651566614396&amp;atk=179li835k18b17ae')]">Manhattan Associates WMoS QA Analyst</a>
    </div>
    <h6>Thu, 11 Oct 2012 15:20:31 GMT</h6>
    Company: CMAC Inc<br>
        Asheville, NC<br>
            <p>Manhattan Associtates WMoS Loads of Documentation and detail required for this position Immediate opening for 2 Senior QA Analysts Project: Manhattan (WMOS... </p>
            <div class="cleaner"></div>
        </div>
        <div class="jobWrapper">
            <div class="jobTitle">
                <a href="http://www.indeed.com/viewjob?jk=a17a7c578a779db8&amp;qd=Cg_V6UykGXt-ccaEWxs0BA1LyorWd-7Tcbya1NtZKa9WZ1DtngXSHw91EGjVCy_rntA_Y_5cpbSuoLd44_xEjXNG-vBD0DC792zHqZRp6lE&amp;indpubnum=1813651566614396&amp;atk=179li835k18b17ae" target="" onclick="_gaq.push(['_trackEvent','indeed.com','none','http://www.indeed.com/viewjob?jk=a17a7c578a779db8&amp;qd=Cg_V6UykGXt-ccaEWxs0BA1LyorWd-7Tcbya1NtZKa9WZ1DtngXSHw91EGjVCy_rntA_Y_5cpbSuoLd44_xEjXNG-vBD0DC792zHqZRp6lE&amp;indpubnum=1813651566614396&amp;atk=179li835k18b17ae')]">Software Analyst - WMOS</a>
            </div>
            <h6>Mon, 01 Oct 2012 21:02:50 GMT</h6>
            Company: Manhattan Associates<br>
                Atlanta, GA<br>
                    <p>innovations include: Manhattan SCOPE® a portfolio of... Position open in Atlanta Office. About Manhattan Associates:  Manhattan Associates is at the forefront of... </p>
                    <div class="cleaner"></div>
                </div>
  • 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-06-13T00:05:34+00:00Added an answer on June 13, 2026 at 12:05 am

    Ah, found this link

    Added this to filter out the unwanted:

    <xsl:template match="response">
        <xsl:apply-templates select="results"/>
    </xsl:template>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to learn XSLT (for some holiday coding fun). I think I now
trying to learn some html/css and I'm having a problem with fixed position divs.
I am trying to learn pyparsing. It sounds promising and something that would be
I've been trying to learn how to code in xslt and currently am stuck
Trying to learn a bit about PDO and is going through this tutorial .
im trying to learn delegates and events in c#, i understand that an event
Im trying to learn a bit about c++ and have run in to some
I am trying to learn XSLT but I work best by example. I want
I'm trying to read some of other people's code, both to help me learn
Trying to learn Regex in Python to find words that have consecutive vowel-consonant or

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.