Hi,

I'm struggling to insert a PI node with the insertNode command.
Here is the code I have at the moment:

<cfg:command name="selectNode"
parameter="ancestorOrSelf[implicitElement] artikel"/>
<cfg:command name="MultiPrompt" parameter="Stichwort Hauptstichwort
Substichwort"/>
<cfg:set variable="keywords" expression="%_" plainString="true"/>
<cfg:get expression="concat('stichworteintrag ', $keywords)"/>
<cfg:command name="insertNode" parameter="piInto %_"/>


The MultiPrompt command returns the string "Stichwort1 | Stichwort2"

I would like to generate a PI like <?stichworteintrag Stichwort1 |
Stichwort2?>

Do you have any hint how to achieve this output?

Thanks,
Roman

Reply via email to