|
Hello,
I need to change version numbers for particular assemblies referenced within an XML formatted application.config file.
For example, given this XML:
<References> <xsl:for-each select="References/Reference[contains(@refto, 'dbcore')]"> <Reference type = "Gac" refto = "dbcore, Version=1.1.0.0, Culture=neutral, PublicKeyToken=1403d50a7683ade0"/> </xsl:for-each> <xsl:for-each select="References/Reference[contains(@refto, 'nxunit.framework')]"> <Reference type = "Gac" refto= "nxunit.framework, Version=1.1.0.0, Culture=neutral, PublicKeyToken=1403d50a7683ade0" /> </xsl:for-each> <xsl:for-each select="References/Reference[contains(@refto, 'nxcore')]" > <Reference type = "Gac" refto = "nxcore, Version=1.1.0.0, Culture=neutral, PublicKeyToken=1403d50a7683ade0" /> </xsl:for-each>
How would xmlpoke be used to change the version for nxunit.framework? I do not completely understand the syntax if it is even possible to accomplish. This is as far as I’ve gotten:
<xmlpoke file="${is.appsrcdir}\nxstudio\data\ConversionStyleSheets\ConvertPrjx11to11a.xsl" value="${configuration.version}" xpath="/**/References/xsl:for-each/" failonerror="True" />
The example in the documentation shows only how to reference a single key/value pair at the beginning of a node.
Can a nested key/value pair be referenced? Can the x’th key/value of a multiple key/value node be referenced?
If xmlpoke will not do the job, have you any other suggestions?
Thanks,
~James
Newmerix Corporation Office: 303 642 4629 Mobile: 303 548 2355
|
<<image001.gif>>
