[ 
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)

Reply via email to