procesy_to_cubetto.xsl 2.6 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:exslt="http://exslt.org/common"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. exclude-result-prefixes="xs"
  7. version="2.0">
  8. <xsl:output omit-xml-declaration="no" indent="yes" method="xml" encoding="UTF-8" version="1.0" />
  9. <xsl:strip-space elements="*"/>
  10. <xsl:template name="procesy_to_cubetto">
  11. <!-- <xsl:element name="projects">
  12. <xsl:attribute name="id" select="'Project_p20'"/>
  13. <xsl:attribute name="name" select="'XSL_TEST'"/>
  14. <xsl:attribute name="exporter" select="'Cubetto'"/>
  15. <xsl:attribute name="exporterVersion" select="'1.2.0'"/>
  16. <xsl:attribute name="targetNamespace" select="'http://xml.semture.de/mobileE3'"/>
  17. -->
  18. <projects xmlns="http://xml.semture.de/mobileE3"
  19. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exporter="Cubetto" exporterVersion="1.2.0"
  20. id="Project_p20" name="XSL_TEST" targetNamespace="http://xml.semture.de/mobileE3"
  21. xsi:schemaLocation="http://xml.semture.de/mobileE3 http://www.semture.de/downloads/cubetto/schemas/mobileE3.xsd">
  22. <xsl:element name="project">
  23. <xsl:attribute name="id" select="'Project_p20'"/>
  24. <xsl:attribute name="name" select="'XSL_TEST'"/>
  25. <xsl:attribute name="modifiedAt" select="'1419471513.985344'"/>
  26. <xsl:attribute name="leastPresentation" select="'Presentation_p51'"/>
  27. <xsl:element name="modelType">
  28. <xsl:attribute name="id" select="'ModelType_p19'"/>
  29. <xsl:attribute name="cubettoBuild" select="'968'"/>
  30. <xsl:attribute name="cubettoVersion" select="'1.5.0'"/>
  31. <xsl:attribute name="languageVersion" select="'1.0.6'"/>
  32. <name es="BPMN" ru="BPMN" de="BPMN" fr="BPMN" en="BPMN" key="BPMN"
  33. zh-Hans="&#x4E1A;&#x52A1;&#x6D41;&#x7A0B;&#x6A21;&#x578B;&#x4E0E;&#x6807;&#x8BB0;&#x6CD5;"/>
  34. <model id="Model_p19"/>
  35. <xsl:copy-of select="/"/>
  36. </xsl:element>
  37. </xsl:element>
  38. </projects>
  39. </xsl:template>
  40. </xsl:stylesheet>