W3C home > Mailing lists > Public > public-web-http-desc@w3.org > March 2009

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

From: Dave Bordoley <bordoley@gmail.com>
Date: Fri, 13 Mar 2009 15:16:43 -0700
Message-ID: <7700b5010903131516v12fd7dadw63edc051a684e68d@mail.gmail.com>
To: public-web-http-desc@w3.org
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>
Received on Friday, 13 March 2009 22:31:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 13 March 2009 22:31:25 GMT