The CSS which is loaded is defined in your HTML.  If you're going to use a
parameter to fetch the HTML, you're going to have to dynamically rewrite
that HTML to point to the correct CSS.

Whether you use a handler to rewrite where to get the CSS file, or whether
it shoves all the CSS into the HTML and just delivers that ... either way
you're going to end up modifying the document delivered.

Or you'll have to create a lot of duplicates and de-normalize everything
... which works just fine until you make a change and have to update 50
documents.  =)

Or you write some javascript which looks at the document.URL, figures out
what CSS it needs, and then dynamically loads those files after the fact.
 Could be doable if you kept it sync so the JS blocks page render until
it's done with the CSS loading.

Pick yer poison...

-mox




On Thu, Aug 1, 2013 at 8:23 PM, ericsodt <dean.eric...@ll.mit.edu> wrote:

> Anyone have any ideas?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Dynamic-xsl-with-custom-uri-resolver-tp5736668p5736670.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to