Unable to render {include} The included page could not be found.
Welcome to the Saxon XSLT Processor ServiceThis local service provides an XSLT Transformation Engine [1] for transforming XML-encoded source documents using a supplied XSLT stylesheet. The service functions as a Java servlet and can be invoked using the following syntax: hostname:[port-number]/saxon/SaxonServlet?source=[xml-source]&style=[xsl-stylesheet]&clear-stylesheet-cache=yes Where:
Example: http://localhost:8080/saxon/SaxonServlet?source=http://dl.lib.virginia.edu/data/xmltext/ead/viu03270&style=http://dl.lib.virginia.edu/bin/ead/xsl/document.xsl Configuring AuthenticationIf the Saxon Servlet needs to retrieve a stylesheet or source xml that is protected by basic authentication, it can be configured to do so by setting the parameters in the servlet's The example below is what needs to be added for each host:port/path combination that the servlet needs to provide credentials for. The param-value is a colon-delimited username and password pair. When the Saxon Servlet needs to access a URL starting with the param-name, it will provide these credentials. Multiple init-param elements may be provided. <init-param> <param-name>credentials for localhost:8080/fedora/getDS</param-name> <param-value>backendUser:backendPass</param-value> </init-param> Note that the text The Saxon Servlet will need to be restarted in order for new values to take effect. Passing parametersAny URL query parameters passed to the Saxon servlet are available to your stylesheet (so long as you don't use one of the standard parameter names such as Example URL http://localhost:8080/saxon/SaxonServlet?source=http://dl.lib.virginia.edu/data/xmltext/ead/viu03270&style=http://dl.lib.virginia.edu/bin/ead/xsl/document.xsl¶m1=SomeText Stylesheet <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="param1"/> <xsl:template match="/"> <output> <xsl:value-of select="$param1"/> </output> </xsl:template> </xsl:stylesheet> Passing additional XML documentsIf a URL query parameter specifies the URL of an XML document, the contents of the document can be processed using the xslt For example, if you construct an SDef object that binds to a datastream and passes this to the Saxon servlet as a URL query parameter, you can access this additional datastream content (in addition to the Example URL http://localhost:8080/saxon/SaxonServlet?source=http://dl.lib.virginia.edu/data/xmltext/ead/viu03270&style=http://dl.lib.virginia.edu/bin/ead/xsl/document.xsl¶m1=http://dl.lib.virginia.edu/data/xmltext/another-input Stylesheet <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="param1"/> <xsl:template match="/"> <output> <xsl:value-of select="document($param1)/path/to/element"/> </output> </xsl:template> </xsl:stylesheet> Setting the Internet Media Type (MIMEType)By default the Saxon servlet will return a media type of Internet Media Type example <xsl:output indent="yes" method="xml" media-type="text/xml"/> [1] This service uses the SAXON XSLT Processor from Michael Kay which is licensed under the Mozilla Public License (MPL). For additonal information regarding the SAXON XSLT Processor, please refer to the Saxon project web site on SourceForge at: http://saxon.sourceforge.net/. Unable to render {include} The included page could not be found.
|