Guest User

Untitled

a guest
Dec 16th, 2013
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.50 KB | None | 0 0
  1. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  2. <xsl:output method="xml"/>
  3. <!--
  4.  
  5.   The following parameters are made available by the application:
  6.   source-aet   - AET of the Storage SCU from which the series was received
  7.   retrieve-aet - AET of the Query Retrieve SCP from which the series can be retrieved
  8.   year  - The current year
  9.   month - The current month (1=Jan, 2=Feb ..)
  10.   date  - The current day of the month
  11.   day   - The current day of the week (0=Sun, 1=Mon ..)
  12.   hour  - The current hour of the day
  13.  
  14.   These parameters may be to define rules that depend on the source or retrieve AET
  15.   or on the current date or time.
  16.  
  17.   An example of the parameters that are made available to this stylesheet is as follows:
  18.   <xsl:param name="source-aet">DCMSND</xsl:param>
  19.   <xsl:param name="retrieve-aet">DCM4CHEE</xsl:param>
  20.   <xsl:param name="month">4</xsl:param>
  21.   <xsl:param name="date">30</xsl:param>
  22.   <xsl:param name="day">1</xsl:param>
  23.   <xsl:param name="hour">15</xsl:param>
  24.  
  25. -->
  26. <xsl:param name="source-aet"/>
  27. <xsl:param name="retrieve-aet"/>
  28. <xsl:param name="year"/>
  29. <xsl:param name="month"/>
  30. <xsl:param name="date"/>
  31. <xsl:param name="day"/>
  32. <xsl:param name="hour"/>
  33. <xsl:template match="/dataset">
  34. <destinations>
  35. <!--  Forward Series with study date later than 20100523  -->
  36. <xsl:if test="attr > '200505253">
  37. <destination aet="DCMRCV" priority="high"  includePrior="true"/>
  38. </xsl:if>
  39. </destinations>
  40. </xsl:template>
  41. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment