Skip to content
XSLT Stylesheet for the current WADL W3C Submission
Find file
New pull request
Failed to load latest commit information.
README.txt Fixes #2
example_wadl.xml Fix from bobfoster for hyperlink
wadl.xsl Not the child false but the value false()


README.txt (07-Sep-2012)

wadl.xsl is an XSLT stylesheet for transforming WADL, a Web Application's XML-based interface specification, into human-readable HTML documentation.

It is available at


    You can use this with a transformation engine but most modern browsers can handle it. Simply add a processing directive to your XML
        <?xml version="1.0" encoding="UTF-8"?>
        <?xml-stylesheet type="text/xsl" href="wadl.xsl"?>
        <wadl:application xmlns:wadl=""
            etc., etc.   
    The stylesheet has been tested with IE 9, Firefox 12, Chrome 21 and Apache Xalan 2.7.1 on Windows 7 and Safari and Chrome 21 on iOS 5.1.1. Note that links for external XML schema types do not work in Firefox. Also, Chrome doesn't process the XSL if the wadl is opened locally through a file URL. Serve it up over HTTP(s) to Chrome.
    The stylesheet works with the current WADL W3C Submission ( whose namespace is If you need it to work with the original namespace,, simply change the stylesheet's document element's wadl namespace, as follows:
         xmlns:xsl="" version="2.0"


    The stylesheet does not handle globally defined methods or representations. These must be embedded within method elements (embedded within resources/resource elements). Other limitations are noted in the file header.
    Browser support for XSLT and CSS varies and the rendered view will differ. For example, Firefox does not generate hyperlinks for parameter types.


    The example_xml.wadl is provided to show off the capabilities of the stylesheet.


    Copyright (c) 2012 IPC Systems, Inc.
    Parts of this work are adapted from Mark Notingham's wadl_documentation.xsl, at
    This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 License.
    To view a copy of this license, visit
    or send a letter to 
        Creative Commons
        543 Howard Street, 5th Floor
        San Francisco, California, 94105, USA


    For questions, contact Mark Sawers <>.
Something went wrong with that request. Please try again.