p5dkp.asserts.xsl 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
  3. xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
  4. xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
  5. xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
  6. xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
  7. xmlns:p5dkp="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.xsd"
  8. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  9. xmlns:p5dkp.comment="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.comment.xsd"
  10. xmlns:p5dkp.map.keys="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.map.keys.xsd"
  11. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  12. xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
  13. xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  14. xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
  15. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  16. xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
  17. xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
  18. xmlns:p5xsda="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsd_asserts/p5xsda.xsd"
  19. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  20. exclude-result-prefixes="xs"
  21. version="2.0">
  22. <xsl:output indent="yes"/>
  23. <xsl:strip-space elements="*"/>
  24. <xsl:template mode="p5xsda:assert-apply-genrated"
  25. match="role"
  26. xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.xsd">
  27. <xsl:copy-of select="@*"/>
  28. <xsl:apply-templates mode="#current" select="*[ not(*)]"/>
  29. <role_price_per_hour>
  30. <xsl:value-of select="number(role_price) div number(role_time)"/>
  31. </role_price_per_hour>
  32. <xsl:apply-templates mode="#current" select="*[*]"/>
  33. </xsl:template>
  34. <xsl:template mode="p5xsda:assert-apply-genrated" match="*">
  35. <xsl:copy>
  36. <xsl:copy-of select="@*"/>
  37. </xsl:copy>
  38. </xsl:template>
  39. <xsl:template mode="p5xsda:assert-apply-genrated" match="comment()|text()">
  40. <xsl:copy-of select=".">
  41. <xsl:apply-templates mode="#current"/>
  42. </xsl:copy-of>
  43. </xsl:template>
  44. </xsl:stylesheet>