You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TM.Bosman.Reference.Administration.xsl 1.7KB

1 周之前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  2. xmlns:ScriptNS0="http://schemas.microsoft.com/BizTalk/2003/ScriptNS0"
  3. xmlns:ScriptNS1="http://schemas.microsoft.com/BizTalk/2003/ScriptNS1"
  4. xmlns:DateTime="TM.Shared.Components.DateTime"
  5. xmlns:KeyList="TM.Shared.Components.KeyList"
  6. xmlns:SSO="TM.Shared.Components.SSO"
  7. xmlns:String="TM.Shared.Components.String"
  8. xmlns:Bosman="TM.Bosman.Components.MSsql"
  9. xmlns:s0="http://TM.KLG.com/KLG/Order"
  10. xmlns:ns0="http://TM.KLG.com/KLG/Order"
  11. exclude-result-prefixes="s0 ns0 ScriptNS0 ScriptNS1 DateTime KeyList SSO String Bosman">
  12. <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" indent="yes" />
  13. <!-- Region global variable initialization -->
  14. <!-- end region -->
  15. <!-- region templates -->
  16. <xsl:template match="/">
  17. <xsl:apply-templates select="/s0:Order" />
  18. </xsl:template>
  19. <xsl:template match="/s0:Order">
  20. <ns0:Order>
  21. <Reference>
  22. <xsl:value-of select="Reference"/>
  23. </Reference>
  24. <TimeStamp>
  25. <xsl:value-of select="TimeStamp"/>
  26. </TimeStamp>
  27. <xsl:for-each select="Shipment">
  28. <ns0:Shipment>
  29. <ConsignorReference>
  30. <xsl:value-of select="ConsignorReference"/>
  31. </ConsignorReference>
  32. <Update>
  33. <xsl:value-of select="Bosman:AddReference(ConsignorReference)"/>
  34. </Update>
  35. </ns0:Shipment>
  36. </xsl:for-each>
  37. </ns0:Order>
  38. </xsl:template>
  39. <!-- end region -->
  40. </xsl:stylesheet>