You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "ppalaga (via GitHub)" <gi...@apache.org> on 2023/02/01 13:49:51 UTC

[GitHub] [camel-quarkus] ppalaga opened a new issue, #4472: Support `` in native mode

ppalaga opened a new issue, #4472:
URL: https://github.com/apache/camel-quarkus/issues/4472

   An idea: We could maybe support XSLT includes in native mode by inlining them before passing to the build time XSLT compiler.
   
   There is a test that is disabled in native mode right now https://github.com/apache/camel-quarkus/blob/main/integration-tests/xml/src/test/java/org/apache/camel/quarkus/component/xml/it/XmlTest.java#L127
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] zhfeng commented on issue #4472: Support `` in native mode

Posted by "zhfeng (via GitHub)" <gi...@apache.org>.
zhfeng commented on issue #4472:
URL: https://github.com/apache/camel-quarkus/issues/4472#issuecomment-1413287029

   I'm not very sure what is `inlining` ? are you suggesting to expand the include files ? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] ppalaga commented on issue #4472: Support `` in native mode

Posted by "ppalaga (via GitHub)" <gi...@apache.org>.
ppalaga commented on issue #4472:
URL: https://github.com/apache/camel-quarkus/issues/4472#issuecomment-1419897002

   > I'm not very sure what is `inlining` ? are you suggesting to expand the include files ?
   
   Yes, if there is `<xsl:include href="my-include.xsl">` and if the content of `my-include.xsl` is 
   
   ```
   <xsl:stylesheet
           xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
           version='1.0'>
   
       <xsl:output method="xml" indent="yes" encoding="ISO-8859-1"/>
   
       <xsl:template match="/">
           <classpath-xsl subject="{/mail/subject}">
               <cheese>
                   <xsl:apply-templates select="*|@*"/>
               </cheese>
           </classpath-xsl>
       </xsl:template>
   
       <xsl:template match="*">
           <xsl:copy>
               <xsl:copy-of select="attribute::*"/>
               <xsl:apply-templates/>
           </xsl:copy>
       </xsl:template>
   
   </xsl:stylesheet>
   ```
   
   then the `<xsl:include>` element would be replaced by something like 
   
   ```
       <xsl:template match="/">
           <classpath-xsl subject="{/mail/subject}">
               <cheese>
                   <xsl:apply-templates select="*|@*"/>
               </cheese>
           </classpath-xsl>
       </xsl:template>
   
       <xsl:template match="*">
           <xsl:copy>
               <xsl:copy-of select="attribute::*"/>
               <xsl:apply-templates/>
           </xsl:copy>
       </xsl:template>
   ```
   
   Not sure myself how well this can work. At least line refs in error messages will be skewed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org