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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:49:51+00:00 2026-06-12T11:49:51+00:00

Here is variable: <xsl:variable name=WepNr select=/*/DbResponse/ResultSet/Row[Cell[@name=’ARTNR’]=$ArtNr][Cell[@name=’WEANR’]=$WeaNr]/Cell[@name=’WEPNR’]/> It can return multiple values, so in that

  • 0

Here is variable:

<xsl:variable name="WepNr" select="/*/DbResponse/ResultSet/Row[Cell[@name='ARTNR']=$ArtNr][Cell[@name='WEANR']=$WeaNr]/Cell[@name='WEPNR']"/>

It can return multiple values, so in that case it will output something like: 2 21 36 =3 values.

I try to go through them:

<xsl:for-each select="$WepNr">
    <LineNumber><xsl:value-of select="$WepNr"/></LineNumber>
</xsl:for-each>

but it just outputs same value 2 21 36 for three times:

<LineNumber>2 21 36</LineNumber>
<LineNumber>2 21 36</LineNumber>
<LineNumber>2 21 36</LineNumber>

How can I output 3 times like:

<LineNumber>2</LineNumber>
<LineNumber>21</LineNumber>
<LineNumber>36</LineNumber>

?

  • 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-12T11:49:53+00:00Added an answer on June 12, 2026 at 11:49 am

    You’re selecting the entire variable again inside the for-each.

    You probably want something like (untested):

    <xsl:for-each select="$WepNr">
        <LineNumber><xsl:value-of select="."/></LineNumber>
    </xsl:for-each>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So here is my current code: <xsl:variable name=address> <xsl:value-of select=concat(/node1/node2/address.node/street, /node1/node2/address.node/city, /node1/node2/address.node/zip) /> </xsl:variable>
What I have is following: <xsl:variable name=myvar select=.//spss:category[((not @varName) or @varName=$colVarName) and @text=$series]/spss:cell/@text/> What
I have the following scenario: <xsl:variable name=var1 select='SOME_DATA1' /> <xsl:if test='some_condition'> <xsl:variable name=var2 >
<xsl:template match=/> <xsl:variable name=a select='a'/> <xsl:variable name=b select='b'/> <xsl:variable name=c select='c'/> <xsl:variable name=result> <xsl:choose>
How can I retrieve the position of the current Para? <xsl:template match=Para> <xsl:variable name=PositionInDocument
I'm trying to run the following template: <xsl:template match=*[starts-with(., 'ATTITUDE_')]/text()> <xsl:variable name=ElementName select=local-name()/> <xsl:variable
Here's the code: //check if the starting row variable was passed in the URL
I tried searching for my issue on here and was unsuccessful. <xsl:for-each select=$all_events[g:active =
I am using the below way to assign value to a variable. <xsl:variable name=NewValue>
Assume I have the following temp documents: <xsl:variable name=emc> <people> <person id=1> <name>Jim</name> </person>

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.