0

My question is a very easy one. I just want to know if buying the professional version of Saxon will help with file URI resolution, since the professional version has the EXPath extension.

I'm asking this because no matter how hard I try, (passing command line parameters, using file:///C|/path/to/text.csv, etc.) Saxon-HE refuses to let my stylesheets load a raw text file using unparsed-text('file:///C:/path/to/text.csv'), and will only resolve the file if it comes from one of the network drives that are mounted, unparsed-text('file://example.com/Dept/path/to/text.csv').

I have to ask this because the Saxon documentation explicitly states that unparsed-text() is NOT dependant on any custom URI resolver classes being used.

4

2 に答える 2

1

あなたの単純な質問に対する単純な答えはノーです。商用の Saxon エディションには多くの利点がありますが、それらは魔法の粉ではありません。Saxon-HE で逆参照できない URI を使用している場合は、それを期待するのではなく、何が間違っているかを解決する必要があります。さまざまなソフトウェアがそれを解決します。

可能な限り単純なケースで最初に試してみることをお勧めします。というファイルを作成し、c:/test.txtそれを として参照してみてくださいunparsed-text('file:///c:/test.txt')。私たちに戻ってきて、それが機能するかどうか教えてください.

于 2016-05-02T17:05:39.480 に答える
0

答えは、XSLT を使用して UTF-8 で解析する前に、生のテキストのエンコーディングを常に確認することです。:^)

于 2016-05-02T17:59:00.557 に答える