Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"XML Reload" removes loaded XSLT #385

Open
Pierre-de-la-Verre opened this issue Apr 24, 2024 · 4 comments
Open

"XML Reload" removes loaded XSLT #385

Pierre-de-la-Verre opened this issue Apr 24, 2024 · 4 comments

Comments

@Pierre-de-la-Verre
Copy link

To reproduce:

  • I'm working with "mydata.xml". It is modified with an external software again and again.
  • open mydata.xml with XmlNotepad, go to "XSL Output" and open "mytransform.xslt"
  • Push "Transform" and get some output
  • Modify "mydata.xml" in the other software and save it
  • XmlNotepad rports: "File has changed - do you want to reload?"
  • Press "Yes" - mydata.xml is reloaded ..
  • -->> The connection to "mytransform.xslt" is lost, I have to select it again and again when the XML is reloaded.

Could you modify this behaviour to keep the connection between XML and XSLT alive?

@lovettchris
Copy link
Member

Ah, sounds like a great idea, so if you are on the XSLT transform tab and the XML file changes, and the user clicks Reload, then automatically rerun the transform. Is this what you want?

@Pierre-de-la-Verre
Copy link
Author

Good question ..

I would say: the base feature should be to not! lose the connection to the XSL.

The "rerun/reload" topic can be seen in a complex way:
3 situations (XML has changed / XSL has changed / XML and XSL has changed) can be answered in
2 ways (reload / rerun) in
3 modes (ask always / do it always / don't do it)

Maybe some "possible combinations" are useless, but at the moment I don't have an idea which combinations are useful and how to handle it. But I think that's not the highest priority ;-)

@lovettchris
Copy link
Member

lovettchris commented Apr 25, 2024

Got it so how about we add to the Options dialog

  • Auto-reload XML
  • Auto-reload XSLT

Where the property has a drop down with 3 values [Always, Prompt, Never], where the behavior we see today is [Prompt] for XML and [Never] for XSL. If you change it to [Always], [Always] you get the fully "live" reload behavior (which is what VS code does). Maybe the status bar will tell you that a reload happened.

Could also play with:

  • Auto-reload XSD

@Pierre-de-la-Verre
Copy link
Author

For me this would be fine, but I'm always hoping for some comments of other users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants