microsoft / microsoft/XmlNotepad

XSLT - merging two not opened files

Open
#387 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.2k
Forks
240
PR merge metrics
No merged PRs in 30d

Description

The common usage of XSLT is to open an XML and to apply an XSLT to the opened file.

Now I played around with an XSLT which uses (two) external, not opened XML (a.xml and b.xml) and "merges" them. In common, it works, but I don't understand the default output-path of the transformation. There are some possible situations for an output-path

  • I open "some.xml" and apply the XSLT: it seem to use the path of "some.xml"
  • I press "New file" and apply the XSLT: it seem to use the path of the first file in the "MRU-list", on top right
  • I press "New file", delete the first entry in the MRU-list and apply the XSLT: it seem to use the path of the XSLT

What's the intended behaviour?

merge_external.zip

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by opening merge_external.zip and reproducing the three cases described: an opened file, a new file with the MRU list intact, and a new file after removing its first entry. Trace how XmlNotepad selects the transformation output path, then confirm the intended behavior and ensure the result is consistent or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.