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/06 22:55:26 UTC

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

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