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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:36:42+00:00 2026-06-12T21:36:42+00:00

I can figure this without literally going to memory overflow (at least with altova

  • 0

I can figure this without literally going to memory overflow (at least with altova mapforce) and hopefully will help others.

I have 2 xml files:

1st:

<item>
  <id>100</id>
  <title>some title</title>
  <subtitle>some subtitle</subtitle>
</item>
...

2nd:

<item>
  <id>100</id>
<item>
...

and I want to match (output XML) every item that matches 2nd XML <id> with 1st XML <id>, by using XSLT. I want to get all elements from matching 1st XML file. I expect this to be easy for those who know XSL or I expect my approach to be wrong

I guess second XML file will be referenced as XSL parameter, but I don’t know how to reference it elements

  • 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-12T21:36:44+00:00Added an answer on June 12, 2026 at 9:36 pm

    It’s something like this:

    <xsl:variable name="first" select="document('first.xml')/root" />
    . . .
    <xsl:template match="item">
      <xsl:variable name="id" select="id" />
      <span>title of item <xsl:value-of select="$id" /> is <xsl:value-of select="$first/item[id=$id]/title" /></span>
    </xsl:template>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to do this without javascript. I can't figure out how to make
I am going crazy trying to figure this out without success. I have a
I have been trying to figure this problem out without asking for help, but
I can't figure this one out. It seems to work in IE8+ and Firefox,
I can't figure this one out. At first let me say that my cache
I can't figure this out, and couldn't find a solution after googling around. I'm
I can't figure this one out. I've got an iPhone-only app with an image
I can't figure this out as when I test my rules at: http://htaccess.madewithlove.be/ It
I can't figure this out. This query inserts a new record with all the
I can't figure this one out no matter how many times I google it

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.