You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Tomohisa Igarashi (Jira)" <ji...@apache.org> on 2025/09/09 11:36:00 UTC
[jira] [Commented] (CAMEL-22011) camel-xslt - Allow to take input as JSon instead of XML
[ https://issues.apache.org/jira/browse/CAMEL-22011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18019052#comment-18019052 ]
Tomohisa Igarashi commented on CAMEL-22011:
-------------------------------------------
xslt-saxon supports XSLT3 and XSLT3 supports json-to-xml(), which enables to take JSON "parameter" into XSLT processing. However the primary input is assumed XML.
camel-xj component implements a custom XmlStreamReader here, it might be worth investigating if the same approach works
https://github.com/apache/camel/blob/main/components/camel-xj/src/main/java/org/apache/camel/component/xj/JsonXmlStreamReader.java
A question, is this stream reader in camel-xj using XSLT stream capability? does it bring a limitation on XSLT stream, such as restricted sibling access?
https://www.w3.org/TR/xslt-30/#streaming-concepts
> camel-xslt - Allow to take input as JSon instead of XML
> -------------------------------------------------------
>
> Key: CAMEL-22011
> URL: https://issues.apache.org/jira/browse/CAMEL-22011
> Project: Camel
> Issue Type: Improvement
> Components: camel-xslt
> Reporter: Claus Ibsen
> Priority: Major
> Fix For: 4.x
>
>
> Since JSon is used a lot but you can do XSLT transformation on a DOM structure then we can make it easier to take json as input and intermediate that to XML for XSLT so end user does not have to do this themselves first.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)