esdl_method.xslt 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ##############################################################################
  4. # HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. ##############################################################################
  18. -->
  19. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ipo="http://www.altova.com/IPO" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:n1="http://www.xmlspy.com/schemas/orgchart">
  20. <xsl:output version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="no" media-type="text/html"/>
  21. <xsl:template match="/">
  22. <html>
  23. <head>
  24. <title/>
  25. <link rel="stylesheet" type="text/css" href="/esp/files/yui/build/fonts/fonts-min.css" />
  26. <link rel="stylesheet" type="text/css" href="/esp/files/css/espdefault.css" />
  27. </head>
  28. <body class="yui-skin-sam">
  29. SERVICE FILE:<xsl:value-of select="MainResponse/File"/>
  30. <br/>
  31. METHOD: <xsl:value-of select="MainResponse/EsdlMethod"/>
  32. <br/>
  33. <br/>
  34. <br/>
  35. <a>
  36. <xsl:attribute name="href"><xsl:text disable-output-escaping="yes">ViewESDL?File=</xsl:text><xsl:value-of select="MainResponse/File"/><xsl:text disable-output-escaping="yes">&amp;EsdlMethod=</xsl:text><xsl:value-of select="MainResponse/EsdlMethod"/></xsl:attribute>View the ESDL definition in XML format
  37. </a>
  38. <br/>
  39. <a>
  40. <xsl:attribute name="href"><xsl:text disable-output-escaping="yes">GetMethodSchema?File=</xsl:text><xsl:value-of select="MainResponse/File"/><xsl:text disable-output-escaping="yes">&amp;EsdlMethod=</xsl:text><xsl:value-of select="MainResponse/EsdlMethod"/></xsl:attribute>View the XML Schema
  41. </a>
  42. <br/>
  43. <a>
  44. <xsl:attribute name="href"><xsl:text disable-output-escaping="yes">ViewForm?File=</xsl:text><xsl:value-of select="MainResponse/File"/><xsl:text disable-output-escaping="yes">&amp;EsdlMethod=</xsl:text><xsl:value-of select="MainResponse/EsdlMethod"/></xsl:attribute>Preview the request FORM page
  45. </a>
  46. <br/>
  47. <a>
  48. <xsl:attribute name="href"><xsl:text disable-output-escaping="yes">SampleMessage?Type=request&amp;File=</xsl:text><xsl:value-of select="MainResponse/File"/><xsl:text disable-output-escaping="yes">&amp;EsdlMethod=</xsl:text><xsl:value-of select="MainResponse/EsdlMethod"/></xsl:attribute>View the sample Request XML
  49. </a>
  50. <br/>
  51. <a>
  52. <xsl:attribute name="href"><xsl:text disable-output-escaping="yes">SampleMessage?Type=response&amp;File=</xsl:text><xsl:value-of select="MainResponse/File"/><xsl:text disable-output-escaping="yes">&amp;EsdlMethod=</xsl:text><xsl:value-of select="MainResponse/EsdlMethod"/></xsl:attribute>View the sample Response XML
  53. </a>
  54. <br/>
  55. </body>
  56. </html>
  57. </xsl:template>
  58. </xsl:stylesheet>