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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:38:01+00:00 2026-06-17T11:38:01+00:00

Using something similar to the answer found in this question I put together a

  • 0

Using something similar to the answer found in this question I put together a function based off to create an XML result tree fragment that I loaded into a variable.

I was able to convert this XML

  <Summary> &lt;Summary&gt;&#xD;
        &lt;Category&gt;&#xD;
            &lt;Category&gt;Tuition and Fees&lt;/Category&gt;&#xD;
            &lt;TotalDebits&gt;0.00&lt;/TotalDebits&gt;&#xD;
            &lt;TotalCredits&gt;-3509.45&lt;/TotalCredits&gt;&#xD;
        &lt;/Category&gt;&#xD;
        &lt;Category&gt;&#xD;
            &lt;Category&gt;Miscellaneous&lt;/Category&gt;&#xD;
            &lt;TotalDebits&gt;60.62&lt;/TotalDebits&gt;&#xD;
            &lt;TotalCredits&gt;-234.36&lt;/TotalCredits&gt;&#xD;
        &lt;/Category&gt;&#xD;
    &lt;/Summary&gt;&#xD;
  </Summary>

to this

<Summary>
    <Category>
        <Category>Tuition and Fees</Category>
        <TotalDebits>0.00</TotalDebits>
        <TotalCredits>-3509.45</TotalCredits>
    </Category>
    <Category>
        <Category>Miscellaneous</Category>
        <TotalDebits>60.62</TotalDebits>
        <TotalCredits>-234.36</TotalCredits>
    </Category>
</Summary>

which is contained in this variable

  <xsl:variable name="SummaryItems">
    <xsl:call-template name="TheGreatUnescape">
      <xsl:with-param name="escaped" select="string(//Summary)" />
    </xsl:call-template>
  </xsl:variable>

Now my issue is that I’m trying to use exslt:node-set() to gain access to the nodes within this variable but I’m not getting any information.

When using a function like

<xsl:for-each select="exslt:node-set($SummaryItems)/Summary/Category">

it produces no result.

I did include the xmlns:exslt="http://exslt.org/common" declaration in the xsl:stylesheet and I’ve tested the node-set function so I know it works just not with the converted XML in the variable.

Have I created a real result tree fragment using that code that exslt:node-set can access?

  • 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-17T11:38:02+00:00Added an answer on June 17, 2026 at 11:38 am

    The most common reason for things not matching is that they are not in the namespace that you expect, it is hard to say as you haven’t shown full code but work in stages

    You say

    <xsl:copy-of select="exslt:node-set($SummaryItems)"/>
    

    works, so try

    <xsl:copy-of select="exslt:node-set($SummaryItems)/*"/>
    

    If that works try

    <xsl:copy-of select="exslt:node-set($SummaryItems)/Summary"/>
    

    If that does not work then Summary is not selecting <Summary> which in 99 times out of 100 is a namespace issue.


    Original answer (fixed in question)

    <xsl:for-each select="exslt:node-set($SummaryItems)\Summary\Category">
    

    should give an XPath syntax error wrong path separator

    <xsl:for-each select="exslt:node-set($SummaryItems)/Summary/Category">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found this question , which has an answer, but facebook changed the token
Background I would like my Python script to pause before exiting using something similar
If I wanted to represent states or options or something similar using binary flags
I am looking for something similar to array_chunk() but using an empty value as
is it possible to make something similar to the following with Postgresql without using
Is there any way to implement something similar to Chatroulette without using Flash or
When I generate a webservice client using wsdl2java from CXF (which generates something similar
I'm using something like this on my server: TcpServerChannel channel = new TcpServerChannel(settings.RemotingPort); ChannelServices.RegisterChannel(channel,
This is my first time using StackOverflow myself. I have found many answers to
I just read this SE Post where it explains the question asked is similar

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.