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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T00:10:33+00:00 2026-06-19T00:10:33+00:00

I need to declare a fixed sequence of numbers. How do I do this?

  • 0

I need to declare a fixed sequence of numbers. How do I do this?

For example, is it (I’m guessing here):

<xsl:element name="xsl:param">
    <xsl:attribute name="name">MySequence</xsl:attribute>
    <xsl:sequence>(1,2,3,4)</xsl:sequence>
</xsl:element>

or

<xsl:element name="xsl:param">
    <xsl:attribute name="name">MySequence</xsl:attribute>
    <xsl:sequence>1,2,3,4</xsl:sequence>
</xsl:element>

or what?

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-06-19T00:10:34+00:00Added an answer on June 19, 2026 at 12:10 am

    If you’re using XSLT 2.0, you can just create the sequence directly in the select like:

    <xsl:param name="MySequence" select="('1','2','3','4')"/>
    

    XSLT based verification…

    XSLT 2.0

    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:output method="text"/>
        <xsl:strip-space elements="*"/>
    
        <xsl:param name="seq" select="('23453','74365','98','653')"/>
    
        <xsl:template match="/">
            <xsl:for-each select="$seq">
                <xsl:value-of select="concat('Item ',position(),': ',.,'&#xA;')"/>
            </xsl:for-each>
        </xsl:template>
    
    </xsl:stylesheet>
    

    applied to any XML input produces:

    Item 1: 23453
    Item 2: 74365
    Item 3: 98
    Item 4: 653
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to declare static(or not static) variable inside Enum. I need this because
I'm wondering why I need to declare a default constructor in this case. For
i have a string like this: DECLARE @val nvarchar(max) set @val='id=1 and Name=abc and
I need to declare 3d array variable but can't. int[][][] ary = new int[5][2][];
I need to declare square matrices in C# WinForms with more than 20000 items
In my application, i need to declare an Array based on the value stored
To use Spring Integration in a Spring XML configuration file, I need to declare
I can't understand why my javascript isn't working... Do i need to declare a
I'm created an hpp file and I need to forward declare classes as I
Variable names in haskell need to be in small case, but How to declare

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.