Skip to main content
Jan 24, 2013 7:11 PM UTC
Solved

Can I use a system variables to specify an XSL in a datamerge DMF file?

Hi Folks,

I have a datamerge setup that requires an XSL to structure the result set. Currently the path must be hard coded to something like C:/DataMerge/Transform.xsl for it to work. I would like to keep the XSL file within the custom folder structure in Arbortext - so is ther a way to use a system variable instead? Does anyone know of some tricks?

<TransformerRef name="t1" nameref="XSLTransformer">

<ResourceEventListenerRef name="logger" nameref="DefaultResourceEventListener">
</ResourceEventListenerRef>

<ParameterRef name="p_stylesheet" nameref="stylesheet">

<Value>C:/DataMerge/Tranform.xsl</Value> <<-- Currently the only way to make this work
<Value>%ARBORTEXT_HOME%/custom/datamerge/Tranform.xsl</Value> <<-- Ideally we would like this to work

</ParameterRef>

Thanks in advance for any suggestions,

    AlessioAnswer
    Feb 4, 2013 12:33 PM UTC

    No, it is not possible

    The XSLT path must be absolute, or relative to the working directory of Arbortext Editor at the time it started up.

    2 replies

    AlessioAnswer
    Feb 4, 2013 12:33 PM UTC

    No, it is not possible

    The XSLT path must be absolute, or relative to the working directory of Arbortext Editor at the time it started up.

    Feb 4, 2013 1:57 PM UTC

    Thanks, That is what I was afraid of. When we tried the relative location, the relative directory was in the C:\Users\All Users area which is not too helpful either.

    Ideally we would be able to point to the install location.

    Anyway, you have answered the question which I appreciate.

    Thanks,

    Rob.