p5ant.create_new_WPS_Function_xsl.xsl 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
  5. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  6. xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
  7. xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
  8. xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
  9. exclude-result-prefixes="xs"
  10. version="2.0">
  11. <xsl:output indent="yes"/>
  12. <xsl:strip-space elements="*"/>
  13. <xsl:param name="p5ant.WPS_Functions.PRODUCT.name.input" required="yes" />
  14. <xsl:param name="p5ant.WPS_Functions.PRODUCT.prefix.input" required="yes"/>
  15. <xsl:template match="template" mode="p5ant:create_new_WPS_Function.xsl" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd" >
  16. <xsl:element name="xsl:stylesheet">
  17. <xsl:namespace name="vc" select="'http://www.w3.org/2007/XMLSchema-versioning'"/>
  18. <xsl:namespace name="xs" select="'http://www.w3.org/2001/XMLSchema'"/>
  19. <xsl:namespace name="p5bws" select="'http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd'"/>
  20. <xsl:namespace name="system_cache__appinfo" select="'http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd'"/>
  21. <xsl:namespace name="{$p5ant.WPS_Functions.PRODUCT.prefix.input}" select="concat('http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/',$p5ant.WPS_Functions.PRODUCT.name.input,'/',$p5ant.WPS_Functions.PRODUCT.prefix.input,'.xsd')"/>
  22. <xsl:attribute name="exclude-result-prefixes">xs <xsl:value-of select="$p5ant.WPS_Functions.PRODUCT.prefix.input"/></xsl:attribute>
  23. <xsl:attribute name="version" select="'2.0'"/>
  24. <xsl:element name="xsl:output">
  25. <xsl:attribute name="indent" select="'yes'"/>
  26. </xsl:element>
  27. <xsl:element name="xsl:strip-space">
  28. <xsl:attribute name="elements" select="'*'"/>
  29. </xsl:element>
  30. <xsl:element name="xsl:param">
  31. <xsl:attribute name="name" select="concat($p5ant.WPS_Functions.PRODUCT.prefix.input,':','basedir')" /> <!-- namespace="{concat('http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/',$p5ant.WPS_Functions.PRODUCT.name.input,'/',$p5ant.WPS_Functions.PRODUCT.prefix.input,'.xsd')}" -->
  32. </xsl:element>
  33. </xsl:element>
  34. </xsl:template>
  35. </xsl:stylesheet>