My controller class has a @Description annotation with both "title" and "value" 
properties.

Here is an abbreviated excerpt from the generated WADL:
------------------
  <resources base="http://myuri";>
    <resource path="mypath">
      <doc title="mytitle">mydescription</doc>
------------------

This all seems reasonable.  I'm trying to use a spreadsheet that generates docs 
from a WADL, from < https://github.com/mnot/wadl_stylesheets>.  It mostly 
works, but it's not getting my title value.  This is possibly just a XSLT bug 
in the spreadsheet, or perhaps there are different interpretations of where the 
title should go.

Here's an excerpt from the spreadsheet:
----------------------
    <xsl:template match="/wadl:application">   
        <html>
            <head>
                <title>
                    <xsl:choose>
                        <xsl:when test="wadl:doc[@title]">
                            <xsl:value-of select="wadl:doc[@title][1]/@title"/>
                        </xsl:when>
                        <xsl:otherwise>My Web Application</xsl:otherwise>
                    </xsl:choose>                 
                </title>
------------------------

I believe this test is looking for a "wadl:doc" element that has a "@title" 
attribute, within the "wadl:application" element.  In my WADL, the above "doc" 
element should match that. However, it generates "My Web Application" in the 
HTML, so it somehow didn't match.

I haven't gotten into actually debugging the stylesheet, to see if something 
else is going on, but I wanted to ask first if everything looks normal in my 
WADL, and what the stylesheet should expect.

Reply via email to