d2a.new_ant_project.child.task.bash.xsl 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  3. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. xmlns:p5dkp="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.xsd"
  5. xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
  6. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  7. xmlns:d2a="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd"
  8. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  9. xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
  10. exclude-result-prefixes="xs d2a"
  11. version="2.0">
  12. <xsl:output indent="yes"/>
  13. <xsl:strip-space elements="*"/>
  14. <xsl:param name="d2a:p5ant.executable.default" select="'bash'"/>
  15. <xsl:template match="info" mode="d2a:new_ant_project.child.task.bash">
  16. <xsl:param name="p5dkp:ditafiles.xml" required="yes"/>
  17. <xsl:param name="d2a:p5ant.executable.priority"/>
  18. <xsl:param name="d2a:p5ant.executable.dir.priority" required="yes" />
  19. <xsl:message>#25-info matched with $d2a:p5ant.executable.priority = <xsl:value-of select="$d2a:p5ant.executable.priority"/></xsl:message>
  20. <xsl:apply-templates mode="#current">
  21. <xsl:with-param name="p5dkp:ditafiles.xml" select="$p5dkp:ditafiles.xml"/>
  22. <xsl:with-param name="d2a:p5ant.executable.priority" select="$d2a:p5ant.executable.priority"/>
  23. <xsl:with-param name="d2a:p5ant.executable.dir.priority" select="$d2a:p5ant.executable.dir.priority"/>
  24. </xsl:apply-templates>
  25. </xsl:template>
  26. <xsl:template match="syntaxdiagram" mode="d2a:new_ant_project.child.task.bash">
  27. <xsl:param name="p5dkp:ditafiles.xml" required="yes"/>
  28. <xsl:param name="d2a:p5ant.executable.priority" select="$d2a:p5ant.executable.default"/>
  29. <xsl:param name="d2a:p5ant.executable.dir.priority" required="yes"/>
  30. <xsl:message>#38-syntaxdiagram matched with $d2a:p5ant.executable.priority = <xsl:value-of select="$d2a:p5ant.executable.priority"/></xsl:message>
  31. <xsl:comment>#38 syntaxdiagram mode="d2a:new_ant_project.child.task.bash"</xsl:comment>
  32. <exec executable="{$d2a:p5ant.executable.priority}" >
  33. <!--<xsl:attribute name="dir">${<xsl:value-of select="$d2a.new_module.INPUT"/>}</xsl:attribute>-->
  34. <xsl:copy-of select="$d2a:p5ant.executable.dir.priority"/>
  35. <arg value="-c" />
  36. <xsl:apply-templates mode="#current">
  37. <xsl:with-param name="p5dkp:ditafiles.xml" select="$p5dkp:ditafiles.xml"/>
  38. </xsl:apply-templates>
  39. </exec>
  40. </xsl:template>
  41. <xsl:template match="groupcomp|groupseq" mode="d2a:new_ant_project.child.task.bash">
  42. <xsl:param name="p5dkp:ditafiles.xml" required="yes"/>
  43. <xsl:apply-templates mode="d2a:new_ant_project.child.task.bash.groupcomp">
  44. <xsl:with-param name="p5dkp:ditafiles.xml" select="$p5dkp:ditafiles.xml"/>
  45. </xsl:apply-templates>
  46. </xsl:template>
  47. </xsl:stylesheet>