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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:31:56+00:00 2026-06-13T04:31:56+00:00

I am passing NodeList as a parameter to XSLT (Im using SaxonB 9.1/XSLT 2

  • 0

I am passing NodeList as a parameter to XSLT (Im using SaxonB 9.1/XSLT 2 if that makes any difference).

What I want to do is to insert all of the elements/values from the nodelist into the XSLT output (which is XML file).

When I do below, it only prints the text values of the nodes (ie. it doesnt generate XML elements at all)

<xsl:param name="NL" />
.    <xsl:template match="/">
.          <xsl:value-of select="$NL" />
.     </xsl:template>
<xsl:stylesheet>

I can access particular elements using XPath, ie. $NL/Node1.
What do I need to do in order to include all of the NodeList’s XML elements and values with the output?

I also tried to do loop like below, but it only prints “top-level” elements of the NOdeList – it doesnt include any children nodes of those elements.

<xsl:for-each select="$NL/*">
.   <xsl:element name="{./name()}">
.       <xsl:value-of select="./text()"/>
.   </xsl:element>
</xsl:for-each>
  • 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-13T04:31:58+00:00Added an answer on June 13, 2026 at 4:31 am

    <xsl:value-of> gives you the string value, you probably want to use <xsl:copy-of> instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

passing post data using cURL requires that the name of the input. However, I
I am having issues passing a dynamic parameter to a JavaScript function using innerHTML.
warning: passing argument 1 of 'bsearch' makes pointer from integer without a cast and
I'm passing to perl from php using escapeshellarg system(perl -e ' . escapeshellarg($inp) .
I have a that has a list of checkboxes and user can click any
Here's a line of code that's giving me trouble. arrayfun(@(x)container.nodelist(x).config(@a_func_handle,0),2:6); Container is a class
I am fetching the some data from the server using XML parsing that is
Does passing SQL Parameters to a stored procedure alone ensure that SQL injection won't
Hi this is my code i want to access the KEY_ID that i put
Passing User defined argument to RPM is possible while installing?. for example: ~>rpm -i

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.