RE: [xep-support] How to provide Stylesheetparameters when using FAIRY?

From: Karl Stubsjoen <stubsjoen@renderx.com>
Date: Fri Aug 20 2010 - 10:11:45 PDT

Friedrich,

 

You cannot send stylesheet parameters in your FAIRY request. You will have
to send such types of parameters in the source xml and you will need to
modify your stylesheet(s) accordingly. There are a number of very realistic
possibilities though, including manipulating your xml source on the fly in
front of the FAIRY request, along with some very simple changes to your
stylesheets. Imagine you have the following xml structure:

 

<root>

<customer>

... customer data here ...

</customer>

</root>

 

Consider a dynamic process which adds parameters just in the root of the xml
source and using a custom namespace to isolate such parameters from the rest
of the document like this:

 

<root>

<parms:collection xmlns:parms="http://website.com/myparms">

  <parms:parm name="the-date" value="2010-10-10"/>

</parms:collection>

<customer>

... customer data here ...

</customer>

</root>

 

Now your stylesheet change for the parameter value becomes:

 

<xsl:param name="the-date" select="//parms:parm[@name='the-date']"/>

 

Good luck!

Karl..

 

 

Karl Stubsjoen

Senior Sales Engineer / Professional Services RenderX, Inc. (Phoenix, AZ)

 

Got XML?

Get RenderX!

The Leader in XML to Print Technology

 

+1 (925) 392-0011 Direct

+1 (602) 451-6157 Cell +1 (650) 328-8008 Fax

stubsjoen@renderx.com http://www.renderx.com

 

 

 

From: owner-xep-support@renderx.com [mailto:owner-xep-support@renderx.com]
On Behalf Of Kirch Fritz
Sent: Friday, August 20, 2010 4:08 AM
To: xep-support@renderx.com
Subject: [xep-support] How to provide Stylesheetparameters when using FAIRY?

 

Dear support-team,

 

at the moment I am using RenderX´s FAIRY solution.

I have written a WebService-Client (actually in Java, Delphi and in
SAP/ABAP) to call FAIRY for rendering my XMLs to PDF.

Everything works perfectly, even specifying a stylesheet inside my XML in
order to let FAIRY do the XML-to-FO transformation.

 

My question is: How can I call FAIRY when there is a need for using
stylesheet parameters?

 

Kind regards

Friedrich Kirch
Softwareentwicklung Media Business Suite

 

Tel.:

 +49 911 30 730-0

FAX:

 +49 911 30 730-111

Mail:

  <mailto:Friedrich.Kirch@it2media.de> Friedrich.Kirch@it2media.de

Homepage:

  <http://www.it2media.de/> www.it2media.de

  _____

IT2media GmbH & Co. KG, Pretzfelder Str. 15, 90425 Nürnberg;
Kommanditgesellschaft, Sitz Nürnberg, HRA Nürnberg 12784, Persönlich
haftende Gesellschafterin: IT2media Beteiligungsgesellschaft mbH, Sitz
Nürnberg, HRB Nürnberg 19511; Geschäftsführer: Dr. Gerhard Baier, Claudia
Dietrich

 

 

**********************************************************************
Diese E-Mail wurde auf Viren ueberprueft.
 <mailto:mailsweeper@it2media.de> mailsweeper@it2media.de
**********************************************************************

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html

image001.jpg
Received on Fri Aug 20 10:25:43 2010

This archive was generated by hypermail 2.1.8 : Fri Aug 20 2010 - 10:25:46 PDT