element-filename.xsl 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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: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"
  5. xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
  6. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  7. exclude-result-prefixes="xs"
  8. version="2.0">
  9. <xsl:param name="p5opr:detect_objects_parent_relations.local" required="yes"/>
  10. <xsl:function name="p5opr:element-filename">
  11. <xsl:param name="system_cache__appinfo:document-uri-orig"/>
  12. <xsl:param name="schema.targetNamespace"/>
  13. <xsl:param name="local-name"/>
  14. <xsl:param name="name"/>
  15. <xsl:variable name="system_cache__appinfo:document-uri-orig">
  16. <xsl:choose>
  17. <xsl:when test="substring-after($system_cache__appinfo:document-uri-orig,'file:/')">
  18. <xsl:value-of select="substring-after($system_cache__appinfo:document-uri-orig,'file:/')"/>
  19. </xsl:when>
  20. <xsl:otherwise>
  21. <xsl:value-of select="$system_cache__appinfo:document-uri-orig"/>
  22. </xsl:otherwise>
  23. </xsl:choose>
  24. </xsl:variable>
  25. <xsl:variable name="element-cache-output">
  26. <xsl:call-template name="system_cache__appinfo:object_install_se_ant_object.save-path">
  27. <xsl:with-param name="schema.prefix" select="system_cache__appinfo:prefix_from_targetNamespace($system_cache__appinfo:vrtfNamespaces,$schema.targetNamespace)"/>
  28. <xsl:with-param name="schema.targetNamespace" select="$schema.targetNamespace"/>
  29. <xsl:with-param name="system_cache__appinfo:document-uri-orig" select="$system_cache__appinfo:document-uri-orig"/>
  30. </xsl:call-template>
  31. </xsl:variable>
  32. <xsl:value-of select="concat($p5opr:detect_objects_parent_relations.local,'/',$local-name,'-',$element-cache-output,'-',$name,'.xml')"/>
  33. </xsl:function>
  34. </xsl:stylesheet>