PDA

View Full Version : How to change the wizardReferences field of a MultiWizardBeanReference through xsl



zengland
07-22-2004, 11:08 AM
How can I change the value of the wizardReferences property of a MultiWizardBeanReference through xsl?
The wizardReferences property is an "array",
so the normal xsl code I would use like:

<xsl:template match="section[@name='Installer']/wizardTree//wizardBean[@
id='mybean']/property[@name='wizardReferences']">
<property name="wizardReferences">newval.jar</property>
</xsl:template>


changes this:
<property array="True" length="1" name="wizardReferences" type="string">
<arrayItem>oldval.jar</arrayItem>
</property>

into this:
<property name="wizardReferences">newval.jar</property>



How can I change only the value in the 'arrayItem' field?

zengland
07-22-2004, 11:57 AM
Actually I figured this out, but how do I change a 'suite' property?
The code to change the arrayItem is this.

<xsl:template match="section[@name='Installer']/wizardTree//wizardBean[@
id='rolesepenable']/property[@name='wizardReferences']/arrayItem">
<arrayItem>SERVER/IIF.jar</arrayItem>
</xsl:template>


But if I want to change a suite property, such as the installRef of a product reference, how do I do so?