|
Subject: Re: [xsl] [XSL] read java variable from XSL From: Florent Georges <lists@xxxxxxxxxxxx> Date: Thu, 21 Feb 2008 13:57:53 +0100 (CET) |
igutierrez027@xxxxxxxxxxxxx wrote:
Hi
> The only possibility is pass de variable to de XSL? What I
> need doing in this case? What toolbox or program I have to
> use?
If you need to pass values to the stylesheet from the wild outside
(for instance from Java code), the easiest is often to use stylesheet
parameters (look for xsl:param). If you are using JAXP (the standard
Java's API for XSLT transforms) you can have a look at:
javax.xml.transform.Transformer.setParameter(String,Object)
For instance, in XSLT:
<xsl:stylesheet ...>
<xsl:parma name="some-uri"/>
and in Java:
TransformerFactory factory = ...;
Transformer trans = factory.newTransformer(style);
trans.setParameter("some-uri", "http://actual-uri");
trans.transform(source, result);
Regards,
--drkm
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] [XSL] read java variable , Zulfikar Dholkawala | Thread | [xsl] Is an XPath processor respons, Costello, Roger L. |
| Re: [xsl] RE : Re: [xsl] Complex re, Mukul Gandhi | Date | [xsl] Is an XPath processor respons, Costello, Roger L. |
| Month |