[1] Added parameter "profile.condition" to <command name="docb.toPS">:
---
<parameter name="profile.condition">%4</parameter>
---
(Does this work with xsl/fo/docbook.xsl? I've no experience yet with
this profile feature.)
[2] Added "%5" to <command name="docb.toPSFile">:
---
<command name="docb.toPSFile">
<process>
<subProcess name="docb.toPS" parameter='"%0" "%1" "%2" "%3" "%5"' />
<upload base="%4">
<copyFile file="__doc.%0" to="%4" />
</upload>
</process>
</command>
---
[3] Made many changes to <command name="docb.convertToPS">:
---
<command name="docb.convertToPS">
<macro>
<sequence>
<command name="selectConvertedFile"
parameter="saveFileURLWithExtension=%0" />
<set variable="selectedFile" expression="%_" plainString="true" />
<command name="prompt" parameter="'Profile' 'Profile:'" />
<get expression="concat('"', $selectedFile, '" "',
'%_', '"')" />
<command name="docb.toPSFile"
parameter='"%0" "%1" "%2" "%3" %_' />
</sequence>
</macro>
</command>
---
(Everything I did is contained in the attachment. My modifications are
based on the xslMenu.incl found in (not yet released) XXE 3.5.1. However
there is not much differences with the one in 3.5.0.)
Skopik Pavel wrote:
>
> I would like to be able to specify the value of the profiling parameter
> interactively before envoking the transformation process which should be
> possible according to a earlier posting in this mailing list.
>
>
>
> I created this macro command which prompts a dialog window and the user
> is asked to type the appropriate value.
>
>
>
>
>
> <command name="profile">
>
> <macro>
>
> <sequence>
>
> <command name="prompt" parameter="'Profilov?n?' 'Vlo?te hodnotu'"/>
>
>
>
> <get expression="%_"/>
>
> </sequence>
>
> </macro>
>
> </command>
>
>
>
>
>
> Then I set up the ?profile.condition? parameter which I use for
> profiling in DocBook.
>
>
>
> <parameter name="profile.condition">%_</parameter>
>
>
>
>
>
> After that I included the prompt command inside the ?docb.convertToPS?
> command.
>
>
>
> <command name="docb.convertToPS">
>
> <macro>
>
> <sequence>
>
> <command name="profile"/>
>
> <command name="selectConvertedFile"
>
> parameter="saveFileURLWithExtension=%0"/>
>
>
>
> <command name="docb.toPSFile" parameter='"%0" "%1" "%2" "%3" "%_"'>
>
> </sequence>
>
> </macro>
>
> </command>
>
>
>
>
>
> At this point the transformation gets done, but the profiling option
> does not filter the content and leaves the PDF file empty with no text
> in it.
>
>
>
> I realize that the problem is related to variables use and at this point
> I am running out of ideas (knowledge J). Is it possible just to solve
> this with using the variables the right way or should be the whole macro
> command rebuilt?
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: excerpt_xslMenu_351.incl
Url:
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20061218/4174f84f/attachment.bat