saxon

Are there any XSLT to C++ compilers available?

走远了吗. 提交于 2019-12-04 12:24:54
I found only one attempt to create such compiler - http://sourceforge.net/projects/xsltc/ . But this project is dead for decade already. Are there any other examples? Opensource or commercial? Are there any fundamental technical difficulties with building such software? With the whole approach of compiling XSLT natively? I suppose there are good use cases for using it - places where we don't need to change XSLT but still would like to get higher performance (and probably, lower memory requirements). Are there any other reasons this software may be not so efficient as it looks? - Are

Saxon-HE Integrated Extension Functions | how and where?

若如初见. 提交于 2019-12-04 12:10:58
Although writing Saxon Integrated Extension Functions are pretty clear to me. I have red: http://www.saxonica.com/html/documentation/extensibility/integratedfunctions/ http://www.saxonica.com/html/documentation/extensibility/integratedfunctions/ext-simple-J.html I'm having extremely hard time finding information how to actually get them to work. Q: Where to put files, do I have to complie anything, do I have to edit saxon configuration? Basically what do I have to do to get this working besides registering an extension function with the s9api Processor. TestMain.java - some java file with

Difficulty getting Saxon into XQuery mode instead of XSLT

一个人想着一个人 提交于 2019-12-04 09:24:22
I'm having difficulty getting XQuery to work. I downloaded Saxon-HE 9.2. It seems to only want to work with XSLT. When I type: java -jar saxon9he.jar I get back usage information for XSLT. When I use the command syntax for XQuery, it doesn't recognize the parameters (like -q), and gives XSLT usage information. Here are some command line interactions: >java -jar saxon9he.jar No source file name Saxon-HE 9.2.0.6J from Saxonica Usage: see http://www.saxonica.com/documentation/using-xsl/commandline.html Options: -a Use xml-stylesheet PI, not -xsl argument -c:filename Use compiled stylesheet from

how to load multiple xml files with saxon

邮差的信 提交于 2019-12-04 06:24:09
问题 I want to use saxon for xpath queries but i don't know to load multiple xml files. I'm trying to use saxon with command line from windows I read in saxon manual that i can use the command: Query.exe -s:myDataFile.xml -q:myQueryFile -o:myOutputFile but i don't know how to load multiple xml files and not just one edit: I have many xml files myDataFile1.xml, myDataFile2.xml, myDataFile3.xml ... and i want to run the query to alla these files So i want to load all all files and then query them (I

Saxon with Visual Studio 2010 - is there a way to use the debugger?

放肆的年华 提交于 2019-12-04 06:18:13
问题 We've been spending increasing amounts of time battling with the limitations of Microsoft's XSLT 1.0 processor. I think the time has come to start using XSLT 2.0. Saxon seems to be a good choice. The problem is - the Visual Studio integrated XSLT debugger is wonderful, and nobody wants to stop using it. My question - is there a way to supply your own processor for Visual Studio to use? Even if step-through debugging didn't work, it'd still be great to be able to run the XSLT from within

Trying to sort a node set from Saxon

只谈情不闲聊 提交于 2019-12-04 05:56:32
问题 To sort a query in Saxon we first run the query: XPathExecutable exe = xPath.compile(query); XPathSelector selector = exe.load(); selector.setContextItem(xmlDocument); XdmValue nodeSet = selector.evaluate(); // put the results in an array ArrayList<XdmItem> nodes = new ArrayList<XdmItem>(); for (int i = 0; i < nodeSet.size(); i++) nodes.add(nodeSet.itemAt(i)); // Sort the results sortNodes(nodes, "RiskLevel", false, false); private void sortNodes(ArrayList<XdmItem> nodes, final String sortKey

Using XSLT to output multiple files

跟風遠走 提交于 2019-12-04 05:01:26
问题 I'm trying to get an example that I found for using XSLT 2.0 to output multiple files working. Using Saxon B 9.7.0.1 with Java 1.6, I get this error: C:\Documents and Settings\Administrator\Desktop\saxon>java -jar saxon9.jar -s:input.xml -xsl:transform.xml Error on line 15 of transform.xml: java.net.URISyntaxException: Illegal character in path at index 20: file:///C:/Documents and Settings/Administrator/Desktop/saxon/output1/test1.html at xsl:for-each (file:/C:/Documents%20and%20Settings

XSLT Getting two different output for same input XML for same XSL

五迷三道 提交于 2019-12-04 04:12:38
问题 I have been trying my XSLT code in the online tool [ XSLT 1.0 processor ]: http://www.freeformatter.com/xsl-transformer.html Recently, I had to make use of xs:dateTime and hence started using the tool that uses XSLT 2.0 processor , http://xsltransform.net/ Now, when i was trying to solve a problem, i see that i get different output for the same input XML in these two processors. The code posted here is not the real code i am working on; this is to simulate the weird output i faced. XML: <?xml

How do I force xslt transformation to load data into cdata sections?

旧时模样 提交于 2019-12-04 04:00:58
问题 I have a client who requires all text in the xml I supply them with to be in CDATA sections. I understand that text should not need to be in CDATA as it has already been parsed and transformed when it is supplied to the client. However, no matter how sure I am, they still need the CDATA sections. Sigh. I am processing my data with Saxon 9.3, using the command line transform command. 回答1: Well as your question title talks about XSLT and your question is flagged as XSLT, the XSLT way to ensure

Use XSLT to mark up text matching regex?

微笑、不失礼 提交于 2019-12-04 03:41:06
问题 I am trying to use XSLT 2.0 (Saxon-PE 9.6) on an HTML document to create tags that surround all contiguous runs of characters from a specified non-Latin Unicode block (spaces allowed). I need to apply this process to every text() node in the document. I have made some progress with two approaches that use <xsl:analyze-string> and using fn:replace() but I've not been able to arrive at a satisfactory and complete solution. For example, here is some text containing Hindi: Input: <p>चाय का कप