- From: Dave Bordoley <bordoley@gmail.com>
- Date: Fri, 13 Mar 2009 15:16:43 -0700
- 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 UTC