Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <max:PublishTP_WORKORDER xmlns:max="http://www.ibm.com/maximo" creationDateTime="2014-04-11T10:43:51+04:00" transLanguage="RU" baseLanguage="EN" messageID="1397198631936413520" maximoVersion="7 5 20130829-1209 V7510--1" event="1">
  3. <TP_WORKORDERSet xmlns="http://www.ibm.com/maximo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  4. <WORKORDER action="Replace">
  5. <ACTCOST xsi:nil="true"/>
  6. <ACTFINISH xsi:nil="true"/>
  7. <ACTINTLABCOST>0.0</ACTINTLABCOST>
  8. <ACTINTLABHRS>0.0</ACTINTLABHRS>
  9. <ACTLABCOST>0.0</ACTLABCOST>
  10. <ACTLABHRS>0.0</ACTLABHRS>
  11. <ACTMATCOST>0.0</ACTMATCOST>
  12. <ACTOUTLABCOST>0.0</ACTOUTLABCOST>
  13. <ACTOUTLABHRS>0.0</ACTOUTLABHRS>
  14. <ACTSERVCOST>0.0</ACTSERVCOST>
  15. <ACTSTART>2013-11-08T12:03:26+04:00</ACTSTART>
  16. <ACTTOOLCOST>0.0</ACTTOOLCOST>
  17. <ADDRESS/>
  18. <AMCREW/>
  19. <AMS>0</AMS>
  20. <AOS>0</AOS>
  21. ...........................
  22. <WORKORDERID>10</WORKORDERID>
  23. <WORKPACKMTLSTATUS/>
  24. <WORKTYPE/>
  25. <WOSEQUENCE xsi:nil="true"/>
  26. </WORKORDER>
  27. </TP_WORKORDERSet>
  28. </max:PublishTP_WORKORDER>
  29.  
  30. <?xml version="1.0"?>
  31. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:max="http://www.ibm.com/maximo" version="1.0">
  32. <xsl:template match="@*|node()">
  33. <xsl:copy>
  34. <xsl:apply-templates select="@*|node()"/>
  35. </xsl:copy>
  36. </xsl:template>
  37. <xsl:template match="/max:PublishTP_WORKORDER">
  38. <xsl:element name="max:CreateTP_WORKORDER">
  39. <xsl:apply-templates select="@*|node()"/>
  40. </xsl:element>
  41. </xsl:template>
  42. </xsl:stylesheet>
  43.  
  44. <?xml version="1.0" encoding="UTF-8"?>
  45. <xsl:stylesheet version="1.0"
  46. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  47. xmlns:max="http://www.ibm.com/maximo">
  48. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
  49.  
  50. <xsl:template match="@*|node()">
  51. <xsl:copy>
  52. <xsl:apply-templates select="@*|node()"/>
  53. </xsl:copy>
  54. </xsl:template>
  55.  
  56. <xsl:template match="/*">
  57. <xsl:variable name="suffix" select="substring-after(local-name(), 'PublishTP_WORKORDER')" />
  58. <xsl:element name="max:CreateTP_WORKORDER{$suffix}">
  59. <xsl:apply-templates select="@*|node()"/>
  60. </xsl:element>
  61. </xsl:template>
  62.  
  63. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement