Posted: Fri Oct 20, 2006 5:30 am Post subject: XMLTransformation : dynamic stylesheet name
Apprentice
Joined: 06 Feb 2006 Posts: 26 Location: PARIS/NEW YORK
I would like to make an XML Transformation.
The name(path) of the stylesheet is extracted from the message.
How to choose dynamically in a flow the name of the stylesheet ?
Is this possible by using a XMLTransformation Node ?
I don't want to use a JavaCompute Node.
You can specify the location of the style sheet to apply to this transformation in one of three ways:
1. You can use node properties. This ensures that the transformation defined by this single style sheet is applied to every message processed by this node.
2. You can use the content of the XML data within the message itself. This transforms the message according to a style sheet that the message itself defines.This behavior is only available for XSL and XML files that are located within a Message Flow project.
3. You can set a value within the LocalEnvironment folder associated with the message. This provides a dynamic choice of style sheet, because you must set this value (in a Compute node) within the message flow after receipt of the message. You can therefore use a variety of inputs to determine which style sheet to use for this message, such as the content of the message data or a value in a database.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum