Comment 2 for bug 975232

Revision history for this message
Diane Fleming (diane-fleming) wrote :

wrong URL:

it would involve some
xslt hackery.

This is the xslt that generates the page:

https://github.com/rackerlabs/clouddocs-maven-plugin/blob/master/src/main/resources/cloud/apipage/apipage-main.xsl

It would be a matter of grabbing the error codes and doing something
with them. You'd have to fetch the value of wadl:response/@status such
that the value doesn't start with a 2 or a 3.

See lines 484 ff of (where I turn the wadl into DocBook; in the case of
the apiref page, the wadl goes straight to html):
https://github.com/rackerlabs/clouddocs-maven-plugin/blob/master/src/main/resources/cloud/process-embedded-wadl.xsl