Hi,

ia m testing xslt2.0 Multiple Output feature. so i have wrote one xsl which is given below.but upon excution iam getting the following exception :

<xsl:stylesheet version="2.0"     
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" name="cd-format"/>
<xsl:template match="/">
 <xsl:for-each-group select="/CATALOG//CD" group-by="COUNTRY">
  <xsl:result-document
        href="Reports1.xml"
        format="cd-format">
   <CD_LIST country="{current-group()/COUNTRY}">
    <xsl:copy-of select="current-group()"/>
   </CD_LIST>
  </xsl:result-document>
 </xsl:for-each-group>
</xsl:template>
</xsl:stylesheet>


Exception :

rror at xsl:result-document on line 8 of file:/D:/WsadWorkSpace/VTool/MultipleOutPut.xsl:
  XTDE1490: Cannot write more than one result document to the same URI, or write to a URI
  that has been read: file:/D:/WsadWorkSpace/VTool/Reports1.xml
Transformation failed: Run-time errors were reported