We are creating a UWP app which uses an unmodified C library which dynamically writes out XML files and corresponding XSL stylesheet files to be loaded by a WebView object.
The fact that it must write out new files means ms-appx: cannot be used. The fact that it must also popup Javascript dialog boxes means ms-appdata: cannot be used.
So we are using ms-local-stream: with a IUriToStreamResolver
class which works with both file creation and with Javascript popup dialogs. And it loads an XML file, BUT it does not even try to load the corresponding XSL stylesheet file.
For example consider the following XML file:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="demo.xsl"?>
<MAINELEM>
Main text
<SUBELEM>
Subtext
</SUBELEM>
</MAINELEM>
which results in the display:
Main text Subtext
BUT never even attempts to use the href file demo.xsl. It doesn't matter what the contents of demo.xsl are since the file is never loaded. Setting a breakpoint in IUriToStreamResolver.UriToStreamAsync()
shows that no attempt is made to load the XSL file.
This is our last hope for ever creating a UWP app. This worked fine using ms-appx: but as I mentioned this cannot be used since it doesn;t allow dynamic file creation. How can we get this ms-local-stream: working with XML and XSL?
Cheers, Bill :-)