saxon

Transformation with Saxon 6.5.5 and XLST does not work correctly

倾然丶 夕夏残阳落幕 提交于 2019-12-24 17:18:44
问题 I want to transform this xml: <?xml version="1.0" encoding="utf-8"?> <KNX xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" CreatedBy="ETS4" ToolVersion="ETS 4.1.2 (Build 3013)" xmlns="http://knx.org/xml/project/11"> <Project Id="P-065C"> <Installations> <Installation InstallationId="0" Name="" BCUKey="4294967295" DefaultLine="P-065C-0_L-2" IPRoutingMulticastAddress="224.0.23.12" SplitType="None" CompletionStatus="Undefined"> <Topology> <Area

XSLT Document() Function results in Saxon Error/ Attribute-String cant be used as Filepath

可紊 提交于 2019-12-24 11:36:09
问题 Basic Information is I have a Element with an ID I want to use the ID-Attribute within the document()-Function to extract the content of the -element I have two Problems here: 1) my saxon Processor wont resolve any fixed! Filepath I provide within de Document Function -->RESULT: FODC0005 Document has been marked not available: Filepath Question: Why ??? This is my code so far: <xsl:template match="pmentry"><xsl:apply-templates/></xsl:template> <xsl:template match="refdm"><xsl:apply-templates/

Spring - web pages using XSLT

允我心安 提交于 2019-12-24 02:25:34
问题 I'm new in XSLT and I would know what is the best solution to integrate XSLT into Spring web application. I found quick example here, but all in all I had troubles with proper character encoding and switching to Saxon processor (I refer to my former questions here and here). In book: 'Spring in Action' is described solution by extending AbstractXsltView. Is better way than AbstractXsltView which would let me choose Saxon processor? Is better way than execute transformation from .jsp files?

Calling Java Methods in XSLT

送分小仙女□ 提交于 2019-12-24 02:05:48
问题 Trying to generat a random number with the help of Java UUID class. <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" xmlns:uuid="java:java.util.UUID"> <xsl:template match="/"> <xsl:variable name="uid" select="uuid:randomUUID()"/> <ClientPK><xsl:value-of select="$uid"/></ClientPK> Error Cannot find a matching 0-argument function named {java:java.util.UUID}randomUUID(). Note that direct calls

XSLT 3.0 partial streaming (Saxon)

旧城冷巷雨未停 提交于 2019-12-24 00:16:13
问题 I have a big XML file (6 GB) with this kind of tree: <Report> <Document> <documentType>E</documentType> <person> <firstname>John</firstname> <lastname>Smith</lastname> </person> </Document> <Document> [...] </Document> <Document> [...] </Document> [... there are a lot of Documents] </Report> So I used the new XSLT 3.0 streaming feature, with Saxon 9.6 EE. I don't want to have the streaming constrains once in a Document. This is why I tried to used copy-of() . I think that, what I want to do,

XML - XSLT - document() function inside count() function

北城以北 提交于 2019-12-23 17:14:23
问题 I asked a similar question on another post but I decided to make this new one since this is a different problem. I am using two XML input files using the document() function to access one of them (the external file). I am trying to use the document() function inside the count() function but I don't know why it is not working... This is the XML input document: <?xml version="1.0" encoding="UTF-8"?> <parent> <childs> <child ID="1" name="John" /> <child ID="2" name="Marie"/> <child ID="3" name=

Using Saxon .NET XSLT processor does not work with intellisense in Visual Studio

孤街醉人 提交于 2019-12-23 12:23:54
问题 I am using the open source Saxon XSLT processor for .NET to execute some 2.0 transforms. I reference the saxon9api.dll as I would any other dll, and can compile code against this. However Visual Studio does not show any intellisense making the IDE as useful as notepad. The saxon9api.dll is using the IKVM Java for .NET platform, and I wonder if this is the causing VS a problem. Reflector can inspect the DLL without issue, but I suspect VS is not happy for some reason. Any ideas? EDIT:

Using Saxon .NET XSLT processor does not work with intellisense in Visual Studio

让人想犯罪 __ 提交于 2019-12-23 12:21:12
问题 I am using the open source Saxon XSLT processor for .NET to execute some 2.0 transforms. I reference the saxon9api.dll as I would any other dll, and can compile code against this. However Visual Studio does not show any intellisense making the IDE as useful as notepad. The saxon9api.dll is using the IKVM Java for .NET platform, and I wonder if this is the causing VS a problem. Reflector can inspect the DLL without issue, but I suspect VS is not happy for some reason. Any ideas? EDIT:

How to integrate Saxon with Kafka

泪湿孤枕 提交于 2019-12-23 05:40:54
问题 I would like to use Kafka as the kernel of my message-oriented middleware. It means that, in addition to the transport of messages provided by Kafka, I would need payload transformation/enrichment between the payload sent by the producer and the payload received by the consumer. Indeed, in a lot of use cases, the format used by the producers will not be the most appropriate format for the consumers. An obvious example would be having mainframe application producing COBOL copybooks as producer

XML - XSLT - Escape special characters

丶灬走出姿态 提交于 2019-12-22 18:38:46
问题 this question is related to another question I posted and still am trying to figure out, here: XML - XSLT - Using two XML files - Additions to XML file consulting another XML file, but since this is a simplier problem, I decided to make a new post about it, to make this problem more "readable" and usefull for future readers of this post, I have the following XML file: <?xml version="1.0" encoding="UTF-8"?> <entry> <text-prop name="content"><![CDATA[<value-of>new Date()</value-of>]]></text