saxon

Alternative XSLT processor to Apache Xalan

邮差的信 提交于 2020-04-18 02:55:28
问题 I am currently using the Apache Xalan XSLT processor in my Java application, but I would like to use some alternative solution which supports use of extension functions. Xalan seems to be out of date and buggy. I know of Saxonixa Saxon, but it is closed sourced. Is there some open source and well working alternative? 回答1: The current open source version of Saxon, Saxon-HE 9.9, supports "integrated extension functions" (functions written to a particular Saxon-defined Java interface). It doesn

Alternative XSLT processor to Apache Xalan

☆樱花仙子☆ 提交于 2020-04-18 02:53:07
问题 I am currently using the Apache Xalan XSLT processor in my Java application, but I would like to use some alternative solution which supports use of extension functions. Xalan seems to be out of date and buggy. I know of Saxonixa Saxon, but it is closed sourced. Is there some open source and well working alternative? 回答1: The current open source version of Saxon, Saxon-HE 9.9, supports "integrated extension functions" (functions written to a particular Saxon-defined Java interface). It doesn

JSON to XML conversing USING XSLT 3.0

人盡茶涼 提交于 2020-04-17 21:54:17
问题 I have using Windows and SAXON 9.9(HE) . My JSON Code is: {"analystId": "Test","jobId": "","profileData":{"allAuthorCoverage": false,"abc":"xyz","assetClasses":[{"status": "Test1"}]}} MY XSLT Code is: <xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent="yes" /> <xsl:strip-space elements="*"/> <xsl:param name="input" select="'simple3.json'"/> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl

JSON to XML conversing USING XSLT 3.0

亡梦爱人 提交于 2020-04-17 21:51:08
问题 I have using Windows and SAXON 9.9(HE) . My JSON Code is: {"analystId": "Test","jobId": "","profileData":{"allAuthorCoverage": false,"abc":"xyz","assetClasses":[{"status": "Test1"}]}} MY XSLT Code is: <xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent="yes" /> <xsl:strip-space elements="*"/> <xsl:param name="input" select="'simple3.json'"/> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl

xsl string-join() multiple variables - only use non-empty

こ雲淡風輕ζ 提交于 2020-03-20 08:38:15
问题 I'd like to create several xsl:variable that may or may not be null then join them: <xsl:variable name="creatorType" select="replace(lib:merge(subfields/subfield[matches(@code,'[e]')],' '),'author|[.$]','')" /> <xsl:variable name="creatorAttribution" select="replace(lib:merge(subfields/subfield[matches(@code,'[j]')],' '),'[,-.]$','')" /> <xsl:variable name="creatorNameFullForm" select="replace(lib:merge(subfields/subfield[matches(@code,'[q]')],' '),'[,-()]$','')" /> <xsl:variable name=

xsl string-join() multiple variables - only use non-empty

一个人想着一个人 提交于 2020-03-20 08:36:58
问题 I'd like to create several xsl:variable that may or may not be null then join them: <xsl:variable name="creatorType" select="replace(lib:merge(subfields/subfield[matches(@code,'[e]')],' '),'author|[.$]','')" /> <xsl:variable name="creatorAttribution" select="replace(lib:merge(subfields/subfield[matches(@code,'[j]')],' '),'[,-.]$','')" /> <xsl:variable name="creatorNameFullForm" select="replace(lib:merge(subfields/subfield[matches(@code,'[q]')],' '),'[,-()]$','')" /> <xsl:variable name=

xsl string-join() multiple variables - only use non-empty

馋奶兔 提交于 2020-03-20 08:36:48
问题 I'd like to create several xsl:variable that may or may not be null then join them: <xsl:variable name="creatorType" select="replace(lib:merge(subfields/subfield[matches(@code,'[e]')],' '),'author|[.$]','')" /> <xsl:variable name="creatorAttribution" select="replace(lib:merge(subfields/subfield[matches(@code,'[j]')],' '),'[,-.]$','')" /> <xsl:variable name="creatorNameFullForm" select="replace(lib:merge(subfields/subfield[matches(@code,'[q]')],' '),'[,-()]$','')" /> <xsl:variable name=

xsl string-join() multiple variables - only use non-empty

生来就可爱ヽ(ⅴ<●) 提交于 2020-03-20 08:36:35
问题 I'd like to create several xsl:variable that may or may not be null then join them: <xsl:variable name="creatorType" select="replace(lib:merge(subfields/subfield[matches(@code,'[e]')],' '),'author|[.$]','')" /> <xsl:variable name="creatorAttribution" select="replace(lib:merge(subfields/subfield[matches(@code,'[j]')],' '),'[,-.]$','')" /> <xsl:variable name="creatorNameFullForm" select="replace(lib:merge(subfields/subfield[matches(@code,'[q]')],' '),'[,-()]$','')" /> <xsl:variable name=

Simple code to verify Saxon can load an XML file (and optionally schema)

夙愿已清 提交于 2020-03-06 09:43:06
问题 This is for a tool in our system that will verify that it can load an XML file with Saxon, and list any problems. So I want to have Saxon load the file and throw an exception if it can't fully parse it. This test has an option to be given a schema file so it validates against the schema if it exists. And then push the read in XML to an XmlDocument to display in a window. All the examples I've found are a lot more complex than this. Is there an example somewhere that shows how to just read it

Where can I download the Saxon validate example?

不羁的心 提交于 2020-03-05 01:29:53
问题 [In this question][1] it was recommended I look at the Saxon EE validate example. Where can I download it? It's not in [this] [2] or [this] [3]. [1]: https://stackoverflow.com/questions/60252919/simple-code-to-verify-saxon-can-load-an-xml-file-and-optionally-schema?noredirect=1#comment106577884_60252919 [2]: https://www.saxonica.com/download/saxon-resources9-9.zip [3]: https://www.saxonica.com/download/dotnet.xml 回答1: I think Martin Honnen may have answered your question in a comment on the