Project

Profile

Help

.NET: -s:URL on 9.8?

Added by T Hata about 7 years ago

On 9.7.0.20N, @Transform.exe -s@ accepts URL:

C:\>"%ProgramFiles%\Saxonica\SaxonHE9.7N\bin\Transform.exe" -s:https://dev.saxonica.com/repos/archive/opensource/latest9.7/samples/styles/identity.xsl -t -xsl:https://dev.saxonica.com/repos/archive/opensource/latest9.7/samples/styles/identity.xsl
Saxon-HE 9.7.0.20N from Saxonica
.NET 4.0.30319.42000 on Microsoft Windows NT 6.2.9200.0
Using parser org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
Stylesheet compilation time: 3.442857s (3442.8579ms)
Processing https://dev.saxonica.com/repos/archive/opensource/latest9.7/samples/styles/identity.xsl
Building tree for https://dev.saxonica.com/repos/archive/opensource/latest9.7/samples/styles/identity.xsl using class net.sf.saxon.tree.tiny.TinyBuilder
Tree built in 17.8529ms
...

But 9.8 throws an exception:

C:\>"%ProgramFiles%\Saxonica\SaxonHE9.8N\bin\Transform.exe" -s:https://dev.saxonica.com/repos/archive/opensource/latest9.7/samples/styles/identity.xsl -t -xsl:https://dev.saxonica.com/repos/archive/opensource/latest9.7/samples/styles/identity.xsl
Saxon-HE 9.8.0.4N from Saxonica
.NET 4.0.30319.42000 on Microsoft Windows NT 6.2.9200.0
Using parser org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
Stylesheet compilation time: 1.875246s (1875.2469ms)
Processing https://dev.saxonica.com/repos/archive/opensource/latest9.7/samples/styles/identity.xsl
java.lang.IllegalArgumentException: AugmentedSource not accepted
        at net.sf.saxon.s9api.DocumentBuilder.build(DocumentBuilder.java:332)
        at net.sf.saxon.Transform.processFile(Transform.java:1218)
        at net.sf.saxon.Transform.doTransform(Transform.java:780)
        at cli.Saxon.Cmd.DotNetTransform.Main(Unknown Source)
Fatal error during transformation: java.lang.IllegalArgumentException: AugmentedSource not accepted

Something's changed in the command line spec?


Replies (2)

RE: .NET: -s:URL on 9.8? - Added by Michael Kay about 7 years ago

Problem transferred here:

https://saxonica.plan.io/issues/3455

to make sure it gets followed up.

RE: .NET: -s:URL on 9.8? - Added by Michael Kay about 7 years ago

As a workaround, try using the Java command line rather than the .NET command line. (It will be significantly faster anyway).

    (1-2/2)

    Please register to reply