SplitAmsatListFile.xsl 527 Bytes
Newer Older
xtof's avatar
xtof committed
1 2 3 4 5 6 7


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" exclude-result-prefixes="#all" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:csv="csv:csv" xmlns:pdts="pdts:pdts">

<xsl:template match="/"> <!-- Match the root -->
  <xsl:for-each select="AmsatList/Satellites">
    <xsl:result-document method="xml" href="satellite_{NasaID}_{Name}.xml">
xtof's avatar
xtof committed
8
	<AmsatList>
xtof's avatar
xtof committed
9
          <xsl:copy-of select="../@* | ." />
xtof's avatar
xtof committed
10
		  </AmsatList>
xtof's avatar
xtof committed
11 12 13 14
    </xsl:result-document>
  </xsl:for-each>
</xsl:template> 
</xsl:stylesheet>