wadl_documentation.xsl doesn't seem to handle resource type correctly

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

wadl_documentation.xsl doesn't seem to handle resource type correctly

Dave Bordoley
Hi,

I've been playing with WADL for service description and I ran into
this bug with wadl_documentation.xsl. The stylesheet doesn't seem to
handle type attribute on a resource element if it doesn't have an id
attribute. The output omits the resource path in this case. Adding an
id to the resource seems to resolve the issue.

thanks,

Dave

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="./wadl_documentation.xsl"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://research.sun.com/wadl wadl.xsd"
xmlns:tns="urn:yahoo:yn"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns="http://research.sun.com/wadl/2006/10">

        <resource_type id="testType">
                <method name="GET" id="testMethod" />
        </resource_type>

        <resources base="http://example.org">
                <resource path="hello" type="#testType"/>
        </resources>
</application>