Passing profiling attribute to XSL transformation

Here should go questions about transforming XML with XSLT and FOP.
g99
Posts: 1
Joined: Fri Feb 07, 2014 4:49 pm

Passing profiling attribute to XSL transformation

Post by g99 »

Is there a way to directly pass the selected profiling attribute to my XSL transformation?

Currently I pass it as a separate parameter and it has to be edited manually.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Passing profiling attribute to XSL transformation

Post by sorin_ristache »

No, currently it is not possible to pass the value of a profiling attribute automatically to an XSLT transformation. You have to set it manually in the transformation.

You can duplicate the transformation scenario and set one distinct value of the profiling attribute in every scenario. After that just switch between these transformations instead of editing the transformation to change the value of the profiling attribute whenever you want to change the profiling value.

Do you apply the transformation to one of the known document types, like DocBook or DITA? Do you have a custom type of XML documents? For example in DITA transformations you don't need a parameter in the transformation for setting the profiling value. You can just leave the default DITAVAL setting in the DITA transformation, which is Use profiling condition set, the current profiling set active in the Oxygen editor.


Regards,
Sorin
Post Reply