p5ant.create_new_WPS_Function_xsd.xsl 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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:param name="p5Type.basedir" required="yes"/>
  16. <xsl:template match="schema" mode="p5ant:create_new_WPS_Function.xsd" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd" >
  17. <xs:schema
  18. xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  19. xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
  20. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  21. vc:minVersion="1.1"
  22. >
  23. <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')"/>
  24. <xsl:attribute name="targetNamespace" select="concat('http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/',$p5ant.WPS_Functions.PRODUCT.name.input,'/',$p5ant.WPS_Functions.PRODUCT.prefix.input,'.xsd')"/>
  25. <xsl:copy-of select="@*"/>
  26. <xs:import schemaLocation="../../Types/system_cache__appinfo/PRODUCT.xsd" namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"/>
  27. <xs:element name="PRODUCT">
  28. <xs:complexType>
  29. <xs:complexContent>
  30. <xs:extension base="system_cache__appinfo:PRODUCT">
  31. <xs:sequence>
  32. <xs:element name="SYSTEM" type="system_cache__appinfo:SYSTEM"/>
  33. <xs:element name="GLOBALS" type="system_cache__appinfo:GLOBALS"/>
  34. <xs:element name="INSTALL" type="system_cache__appinfo:INSTALL"/>
  35. </xs:sequence>
  36. </xs:extension>
  37. </xs:complexContent>
  38. </xs:complexType>
  39. </xs:element>
  40. <xs:group name="PRODUCT">
  41. <xs:sequence>
  42. <xs:element ref="{$p5ant.WPS_Functions.PRODUCT.prefix.input}:PRODUCT"/>
  43. </xs:sequence>
  44. </xs:group>
  45. </xs:schema>
  46. </xsl:template>
  47. </xsl:stylesheet>