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

  • Home
  • SEARCH
  • 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 6746745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:21:32+00:00 2026-05-26T12:21:32+00:00

I am trying to use the code below to select all values of notableWork,

  • 0

I am trying to use the code below to select all values of notableWork, so for each notableWork get its value and get the next one etc. It is sort of working as two “Notable Work:” are appearing just not the values of notable work.

<xsl:for-each select="notableWork">

<p>

Notable Work: <xsl:value-of select="notableWork" />

</p>

</xsl:for-each>

The other issue I am having is with images. I have been messing around with the img tag trying variations of it, below is just what I have ended up with. I have an element called imaged which contains a value of image2.jpg, image4.jpg etc. I cannot seem to get it to work 😛 Just wondering what the correct syntax is, using google I found variations of so really not sure.

<img src="<xsl:value-of select="image" />" />

Thanks 🙂

  • 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-26T12:21:33+00:00Added an answer on May 26, 2026 at 12:21 pm
    <xsl:for-each select="notableWork">
      <p>
      Notable Work: <xsl:value-of select="notableWork" />
      </p>
    </xsl:for-each>
    

    can never work unless you have a nesting like notableWork/notableWork. You already selected notableWork so you cant select it again. So you should work with the node, the current node. Which is XSLT: ., current() or XPath: self::node(). All 3 can be used for the same effect.

    Notable Work: <xsl:value-of select="." />
    

    or

    Notable Work: <xsl:value-of select="current()"/>
    

    To set the attribute of a image tag you can use

    <img>
      <xsl:attribute name="src">
        <xsl:value-of select="images" />
      </xsl:attribute>
    </img>
    

    or

    <img src="{image}"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The code below is what I am trying to use in order to get
I'm trying to use the below code to bring back all records that are
im trying to use the code below to select a form element (i retrieve
I'm trying to use the code below to send messages via System.Net.Mail and am
I am going nuts trying to use PHP to get and insert values into
I am trying to use the code below to group employees by department. I
For the code below, I am trying to use the IF statement if(mysql_num_rows($resA)>0) to
I'm have this code below. As you can see I'm trying to use the
I'm trying to use the prepareStatement function. The code is below. After it executes,
Trying to use this code to connect the AD PrincipalContext context = new PrincipalContext(ContextType.Domain,

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.