Hi Forum,
I use visual studio 2010 to create my xslt files. In some situation i have to replace some old tags from the source xml. I do it like this:
<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<!--SOME OTHER Namespaces--> exclude-result-prefixes="msxsl"><xsl:output method="xml" indent="yes"/><xsl:template match="/someelement/anotherelement/"><xsl:element name="firstElement" namespace="http://myorg/mydefinition.xsd"><xsl:element name="secondElement" namespace="http://myorg/mydefinition.xsd">
.text()</xsl:element></xsl:element></xsl:template>
In the resulting xml i get something like this (no indentation and no new lines)
<firstElement><secondElement></secondElement></firstElement>
I hope I support you with enough information.
Thanks in advance
Chris