I have the following piece of code used to map data from one AJAX form to another. However the output of the mapping has extra namespaces in it. how would I correct the XSL to have the correct output?
i expect to receive:
instead I receive:
this is the piece of code I use:
i expect to receive:
Code:
<a href="http://server:9090/doc.pdf">copy of doc</a>
Code:
<a xmlns:xs="http://www.w3.org/2001/XMLschema" xmlns:gi="http://www.myplace.com/gi/AJAXForms/List1.gi" href="http://server:9090/doc.pdf">copy of doc</a>
Code:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLschema" version="2.0">
<xsl:output method="xml" omit-xml-declaration="yes" />
<xsl:template match="gi:FormModel" xmlns:gi="http://www.myplace.com/gi/AJAXForms/List1.gi">
<xsl:element name="List-field2">
<xsl:for-each select="List-field1/List1-matrix">
<xsl:variable name="position" select="position()" />
<xsl:element name="ShortList2-matrix">
<xsl:element name="doc-map">
<link href="{//*[local-name()=concat('doc',$position,'-upload')]}">Copy of doc</link>
</xsl:element>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
Comment