You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Baeckham <ba...@gmx.net> on 2007/07/31 13:49:08 UTC

setParameter("versionParam", "2.0")

Hi,

in many examples demonstrating the usage of FOP I see this lines:

// Set the value of a <param> in the stylesheet
transformer.setParameter("versionParam", "2.0")

(transformer is an instance of the class javax.xml.transform.Transformer)

What is this parameter for? Does anyone know? The comment is not helping me 
very much. Is this parameter really necessary? I don't see any differences 
using it or not.

Steffen

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: setParameter("versionParam", "2.0")

Posted by Frank Niedermann <fb...@thelogic.org>.


Baeckham wrote:
> 
> in many examples demonstrating the usage of FOP I see this lines:
> 
> // Set the value of a  in the stylesheet
> transformer.setParameter("versionParam", "2.0")
> 
> (transformer is an instance of the class javax.xml.transform.Transformer)
> 
> What is this parameter for? Does anyone know? The comment is not helping
> me 
> very much. Is this parameter really necessary? I don't see any differences 
> using it or not.
> 
> Steffen
> 

I'm having the very same question. Does anybody have an answer yet?

Frank
-- 
View this message in context: http://www.nabble.com/setParameter%28%22versionParam%22%2C-%222.0%22%29-tp11922629p19897875.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: setParameter("versionParam", "2.0")

Posted by George Tsopouridis <gt...@gmail.com>.
i have 

transformer.setParameter("testingParameter", Boolean.TRUE);

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
	<xsl:param name="testingParameter"/>
                       .
                       .
                       .
and 

<xsl:if test="$testingParameter='true'">...</xsl:if>


George Tsopouridis wrote:
> 
> Pascal hello again and thanks for your answers...
> I cannot pass parameters to my xslt transformation .
> As i read in
> http://www.nabble.com/Transformer.setParameter-does-not-work-with-2.7.0-td13854910.html#a20226439
> propably xalan causes problems. 
> Can you help me;;
> My versions are 
> internal Xalan-Version: Xalan Java 2.6.0
> external Xalan-Version: Xalan Java 2.7.0
> internal Xerces-Version: Xerces-J 2.6.2
> external Xerces-Version: Xerces-J 2.7.1
> 
> Thanks again...
> 
> Pascal Sancho wrote:
>> 
>> Hi,
>> 
>> This is used to pass a parameter to the XSLT.
>> In XSLT, you can retreive these parameters using <xsl:param
>> name="versionParam"/> at root level.
>> 
>> Pascal
>> 
>>> -----Message d'origine-----
>>> De : Frank Niedermann [mailto:fbn@thelogic.org] 
>>> Envoyé : jeudi 9 octobre 2008 14:29
>>> 
>>> Baeckham wrote:
>>> > 
>>> > in many examples demonstrating the usage of FOP I see this lines:
>>> > 
>>> > // Set the value of a  in the stylesheet
>>> > transformer.setParameter("versionParam", "2.0")
>>> > 
>>> > (transformer is an instance of the class 
>>> javax.xml.transform.Transformer)
>>> > 
>>> > What is this parameter for? Does anyone know? The comment 
>>> is not helping
>>> > me 
>>> > very much. Is this parameter really necessary? I don't see 
>>> any differences 
>>> > using it or not.
>>> > 
>>> > Steffen
>>> 
>>> I'm having the very same question. Does anybody have an answer yet?
>>> 
>>> Frank
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/setParameter%28%22versionParam%22%2C-%222.0%22%29-tp11922629p20226793.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: setParameter("versionParam", "2.0")

Posted by George Tsopouridis <gt...@gmail.com>.
Pascal hello again and thanks for your answers...
I cannot pass parameters to my xslt transformation .
As i read in
http://www.nabble.com/Transformer.setParameter-does-not-work-with-2.7.0-td13854910.html#a20226439
propably xalan causes problems. 
Can you help me;;
My versions are 
internal Xalan-Version: Xalan Java 2.6.0
external Xalan-Version: Xalan Java 2.7.0
internal Xerces-Version: Xerces-J 2.6.2
external Xerces-Version: Xerces-J 2.7.1

Thanks again...

Pascal Sancho wrote:
> 
> Hi,
> 
> This is used to pass a parameter to the XSLT.
> In XSLT, you can retreive these parameters using <xsl:param
> name="versionParam"/> at root level.
> 
> Pascal
> 
>> -----Message d'origine-----
>> De : Frank Niedermann [mailto:fbn@thelogic.org] 
>> Envoyé : jeudi 9 octobre 2008 14:29
>> 
>> Baeckham wrote:
>> > 
>> > in many examples demonstrating the usage of FOP I see this lines:
>> > 
>> > // Set the value of a  in the stylesheet
>> > transformer.setParameter("versionParam", "2.0")
>> > 
>> > (transformer is an instance of the class 
>> javax.xml.transform.Transformer)
>> > 
>> > What is this parameter for? Does anyone know? The comment 
>> is not helping
>> > me 
>> > very much. Is this parameter really necessary? I don't see 
>> any differences 
>> > using it or not.
>> > 
>> > Steffen
>> 
>> I'm having the very same question. Does anybody have an answer yet?
>> 
>> Frank
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/setParameter%28%22versionParam%22%2C-%222.0%22%29-tp11922629p20226653.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org