xslt - XslCompiledTransform not Resolving import in Powershell -


Using Powershell, I am trying to load an XSLT file in memory, trying to modify it and use it in transforming, but I keep running "XSLT Compilation Errors" being XSLT File is imported (xsl: import href), when I made the path complete, it started working, however, it is not ideal. All files are in the same directory.

  $ processor = new object system. Xml.Xsl.XslCompiledTransform; $ Settings = New-Object System.Xml.Xsl.XsltSettings; $ Resolver = New Object System Xml.XmlUrlResolver; [Xml] $ xsltdoc = Get-content "transformMe.xslt" # Some XML manipulates ... $ processor. Load ($ xsltdoc, $ settings, $ resolvar); # I left some things to keep the code simple, but there was an error at load ()  


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -