Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. Call: bpel:doXslTransform("books.xsl", $sl_searchBooksResponse.parameters, "second", $nl_searchForBooksResponse.parameters/*
  2.  
  3. xsl file
  4.  
  5. --------------------
  6.  
  7.  
  8. <?xml version="1.0" encoding="UTF-8"?>
  9. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  10.  
  11.  
  12. <xsl:template match="nl:searchForBooksReturn">
  13. <book xmlns="http://library.be">
  14. <author>
  15. <xsl:value-of select="nl:author" />
  16. </author>
  17. <publicationDate>
  18. <xsl:value-of select="nl:date" />
  19. </publicationDate>
  20. <isbn>
  21. <xsl:value-of select="nl:isbn" />
  22. </isbn>
  23. <publisher>
  24. <xsl:value-of select="nl:publisher" />
  25. </publisher>
  26. <title>
  27. <xsl:value-of select="nl:title" />
  28. </title>
  29. <pages>42</pages>
  30. <review></review>
  31. <summary></summary>
  32. </book>
  33. </xsl:template>
  34.  
  35. <xsl:template match="book">
  36. <book xmlns="urn:soft.vub.ac.be/">
  37. <author>
  38. <xsl:value-of select="author">
  39. </author>
  40. <publicationDate>
  41. <xsl:value-of select="year" />
  42. concat(year,'-01-01T00:00:00.000Z')
  43. </publicationDate>
  44. <isbn>
  45. <xsl:value-of select="isbn" />
  46. </isbn>
  47. <publisher>
  48. <xsl:value-of select="publisher" />
  49. </publisher>
  50. <title>
  51. <xsl:value-of select="title" />
  52. </title>
  53. <pages>42</pages>
  54. <review></review>
  55. <summary></summary>
  56. </book>
  57. </xsl:template>
  58. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement