1 <!-- This is the external entity version of dec.xsl 2 in which the top level template has been removed 3 and referenced as an external entity 4 --> 5 6 <!DOCTYPE xsl:transform [ 7 <!ENTITY toplevel SYSTEM "http://astro.com/stylesheets/toptemplate"> 8 ]> 9 10 <xsl:transform 11 xmlns:astro="http://www.astro.com/astro" 12 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 13 14 <xsl:output method="xml"/> 15 16 <!-- dec between 00:00:00 and 01:00:00 --> 17 <xsl:param name="dec_min_deg" select="0.0"/> 18 <xsl:param name="dec_max_deg" select="1.0"/> 19 20 <!-- introduce the external entity --> 21 &toplevel; 22 23 <xsl:template match="astro:star"> 24 <xsl:if test="( 25 (number(astro:dec/astro:dv) >= $dec_min_deg) and 26 (number(astro:dec/astro:dv) <= $dec_max_deg))" > 27 <xsl:copy-of select="."/> 28 </xsl:if> 29 </xsl:template> 30 31 <xsl:template match="astro:_test-04"> 32 <!-- discard text contents --> 33 </xsl:template> 34 35 </xsl:transform> 36