Hi,everyone. I have a xml file here:
<DM_Function Function="attribute value">
<DM>
<DM_Source SourceID="id1" SourceTitle="Title1" SourceContent="content1">
</DM_Source>
</DM>
<DM>
<DM_Source SourceID="id2" SourceTitle="Title2" SourceContent="content2">
</DM_Source>
</DM>
<DM>
<DM_Source SourceID="id3" SourceTitle="Title3" SourceContent="content3">
</DM_Source>
</DM>
</DM_Function>
In the XSLT File ,there is a variable:
<xsl:param name="dmIndex" select="2" />
I want to transform the XML file into another.The variable is the element's index,i hope the other XML file just show the Root element and the specified element(including the attributes).