Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Copy an element of a file A to a file B [Thread Next] Re: Copy an element of a file A to a file BTo: NULL Date: 9/13/2006 6:19:00 AM
Thank you for your answer Martin. I'm sorry for the late response, but
I was busy with other things...
I have now an XSL like that:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/xpath-functions">
<!-- <xsl:output method="xml" encoding="ISO-8859-1" indent="yes" />
-->
<xsl:template name="test" match="/configuration">
<xsl:call-template name="copy"/>
</xsl:template>
<xsl:template name="copy">
<xsl:copy-of
select="document('newConfig.xml')/MSBuildConfig/GlobalConfig/connectionStrings"
/>
</xsl:template>
</xsl:stylesheet>
Now it just seems to select the connectionStrings-node - but how can i
place it into the target-file (web.config)?
As you can see, I'm trying to manipulate the root web.config with an
xsl.
Thanks
Dani
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
