camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Updated: (CAMEL-3331) xslt component - Support URI inline strings as resources
Date Fri, 12 Nov 2010 08:19:26 GMT


Claus Ibsen updated CAMEL-3331:

    Summary: xslt component - Support URI inline strings as resources  (was: Support URI inline
strings as resources)

> xslt component - Support URI inline strings as resources
> --------------------------------------------------------
>                 Key: CAMEL-3331
>                 URL:
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-spring
>    Affects Versions: 2.5.0
>            Reporter: Aaron Mulder
>            Priority: Minor
>             Fix For: Future
> This came up for an application where it's inconvenient to access the filesystem and
desirable to embed as much as possible in the Camel routes.  In particular, to write an inline
XSLT sheet instead of referring to an external one.
> The XsltComponent (among many others) uses a Spring ResourceLoader to load resources,
and while it supports things like classpath: or file: or http: there's no way to cause it
to just read the rest of the URI and make that a String and use it as the resource.
> I'm looking for something like this:
> <to uri="xslt:string:<xsl:transform ... >" />
> In practice you need to turn < and > into & lt; and & gt; and do something
with ? (to avoid problems when it looks for ?option=value), but stuff like that aside, it
appears to work to extend DefaultResourceLoader to use a ByteArrayResource based on the remainder
of the URI

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message