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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:09:41+00:00 2026-06-09T18:09:41+00:00

Hi I have xslt structure shown below <xsl:template name=ConvertCriticalFlags> <xsl:param name=src1/> <xsl:param name=src2/> <xsl:param

  • 0

Hi I have xslt structure shown below

<xsl:template name="ConvertCriticalFlags">
<xsl:param name="src1"/>
<xsl:param name="src2"/>
<xsl:param name="src3"/>
<xsl:param name="src4"/>
<xsl:param name="src5"/>
<xsl:variable name="rslt" select="''"/>
<xsl:choose>
  <xsl:when test="$src1 = 'YES'" >
    <xsl:copy-of select="concat($rslt,',', '2TO4UNITS')"/>
  </xsl:when>
  <xsl:otherwise>
    <xsl:copy-of select="''"/>
  </xsl:otherwise>
</xsl:choose>
<xsl:choose>
  <xsl:when test="$src2 = 'YES'">
    <xsl:copy-of select="concat($rslt,',', 'COMMERCIAL')"/>
  </xsl:when>
  <xsl:otherwise>
    <xsl:copy-of select="''"/>
  </xsl:otherwise>
</xsl:choose>
<xsl:choose>
  <xsl:when test="$src3 = 'YES'">
    <xsl:copy-of select="concat($rslt,',', 'ACREAGE')"/>
  </xsl:when>
  <xsl:otherwise>
    <xsl:copy-of select="''"/>
  </xsl:otherwise>
</xsl:choose>
<xsl:choose>
  <xsl:when test="$src4 = 'YES'">
    <xsl:copy-of select="concat($rslt,',', 'MOBILEHOME')"/>
  </xsl:when>
  <xsl:otherwise>
    <xsl:copy-of select="''"/>
  </xsl:otherwise>
</xsl:choose>
<xsl:choose>
  <xsl:when test="$src5 = 'YES'">
    <xsl:copy-of select="concat($rslt,',', 'VACANTLAND')"/>
  </xsl:when>
  <xsl:otherwise>
    <xsl:copy-of select="''"/>
  </xsl:otherwise>
</xsl:choose>
<xsl:choose>
  <xsl:when test="starts-with($rslt,',') = true">
    <xsl:copy-of select="substring($rslt,2)"/>
  </xsl:when>
  <xsl:otherwise>
    <xsl:copy-of select="$rslt"/>
  </xsl:otherwise>
</xsl:choose>

I would like to concatenate all the data into one variable $rslt but i am unable to do so
Can any one suggest how to concatenate.

  • 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-09T18:09:42+00:00Added an answer on June 9, 2026 at 6:09 pm
    <xsl:variable name="rslt" select="string-join((
      '2TO4UNITS'[$src1 = 'YES'],
      'COMMERCIAL'[$src2 = 'YES'],
      'ACREAGE'[$src3 = 'YES'],
      'MOBILEHOME'[$src4 = 'YES'],
      'VACANTLAND'[$src5 = 'YES']), ',')"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this XSLT 2.0: <xsl:stylesheet version=2.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform> <xsl:output indent=yes/> <xsl:strip-space elements=*/> <xsl:template match=node()|@*>
I am transforming XML into HTML using XSLT. I have the following XML structure:
I have a xml file with below structure <project> <dependency id=abc version=1.2.3.4/> </project> I
I have looked at XSL xsl:template match="/" but the match pattern that triggered my
I need to transform an xml-structure into a text string using xslt. I have
I have an XML document which I'm subjected to an XSLT. The structure is
I have a XML structure like the following: <Root> <Node Name=File System> <Node Name=C:\Windows\System32\drivers\etc\hosts>
I have a question regarding XSLT transformation for ouput tables with fixed structure and
I have another question regarding XSLT transformation for tables with fixed structure and variable
we have XSLT to transform XML into HTML in XHTML 1.0 Strict in XSLT

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.