Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

add UnparsedTextURIResolver in XSLT.java (need to have get/setUnparsedTe... #32

Closed
wants to merge 1 commit into from

2 participants

@innovimax

...xtURIResolver on com.xmlcalabash.core.XProcRuntime)

@ndw
Owner

There must be more to this patch. XProcRuntime doesn't have a getUnparsedTextURIResolver() method.

oups... indeed

@innovimax

Well in fact I didn't forgot : that written in the title " (need to have get/setUnparsedTextURIResolver on com.xmlcalabash.core.XProcRuntime)"

@ndw
Owner
ndw commented

Well, uh, have you implemented those bits too? Would you like to make them part of the patch? :-)

@innovimax

There are just dummy getter and setter of a private object, aren't they?

@ndw
Owner

Nudge: I sent you a complete patch in email to test. Please let me know if it works.

@ndw
Owner

Impatiently assuming my patch works. :-)

Let me know if I'm wrong!

@ndw ndw closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 2, 2012
  1. @innovimax

    add UnparsedTextURIResolver in XSLT.java (need to have get/setUnparse…

    innovimax authored
    …dTextURIResolver on com.xmlcalabash.core.XProcRuntime
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/com/xmlcalabash/library/XSLT.java
View
3  src/com/xmlcalabash/library/XSLT.java
@@ -44,6 +44,7 @@
import net.sf.saxon.Configuration;
import net.sf.saxon.lib.CollectionURIResolver;
import net.sf.saxon.lib.OutputURIResolver;
+import net.sf.saxon.lib.UnparsedTextURIResolver;
import net.sf.saxon.s9api.DocumentBuilder;
import net.sf.saxon.s9api.QName;
import net.sf.saxon.s9api.XdmDestination;
@@ -186,6 +187,7 @@ public void run() throws SaxonApiException {
OutputURIResolver uriResolver = config.getOutputURIResolver();
CollectionURIResolver collectionResolver = config.getCollectionURIResolver();
+ UnparsedTextURIResolver unparsedTextURIResolver = runtime.getUnparsedTextURIResolver();
config.setOutputURIResolver(new OutputResolver());
config.setCollectionURIResolver(new CollectionResolver(runtime, defaultCollection, collectionResolver));
@@ -224,6 +226,7 @@ public void run() throws SaxonApiException {
}
transformer.setSchemaValidationMode(ValidationMode.DEFAULT);
+ transformer.getUnderlyingController().setUnparsedTextURIResolver(unparsedTextURIResolver);
transformer.transform();
config.setOutputURIResolver(uriResolver);
Something went wrong with that request. Please try again.