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

View: New views
1 Messages — Rating Filter:   Alert me  

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

by Dave Bordoley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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>