Hey Paul,
My code has changed. This is the input file I'll be working with:
<configuration>
<configSections>
</configSections>
<appSettings>
</appSettings>
</configuration>
Here is the translation file code:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<!-- creates new info to be added to the output -->
<xsl:variable name="source">
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</xsl:variable>
<!-- merge input with "source" -->
<xsl:template match="configuration">
<configuration>
<xsl:copy-of select="*" />
<xsl:copy-of select="$source" />
</configuration>
</xsl:template>
</xsl:stylesheet>
There is a group of people who will be creating their own configuration tags. These are configurations for different aspects of the project. They will need to be able to hard code their configurations tags into the translation file. All of their configuration tags will need to be inserted inside the <configuration> tag, under the correct "second" tag.
Like in the translation code above, the tag <section .... /> will need to be added into a <configSections></configSections> tag, which is also under the root <configuration></configuration> tag.
Is there much I would need to change to my translation code to achieve this?
[ June 25, 2008: Message edited by: Cole Groff ]