diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-05-06 10:14:57 +0000 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2009-02-13 00:01:41 +0200 |
commit | 3290a1647be4e9a2cc81606972998efe4aaf2772 (patch) | |
tree | ff89a37b8b6169d61972cb043d455b209ab33f5f /tools | |
parent | f0bb247cdfaa7182131bed67b91d527fccea84d9 (diff) |
Simplify generation of links to arrays of types
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc-generator.xsl | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/tools/doc-generator.xsl b/tools/doc-generator.xsl index a820e46..09194bb 100644 --- a/tools/doc-generator.xsl +++ b/tools/doc-generator.xsl @@ -477,18 +477,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA </xsl:choose> </xsl:variable> <xsl:choose> - <xsl:when test="//tp:simple-type[@name=$tp-type]" /> - <xsl:when test="//tp:simple-type[concat(@name, '[]')=$tp-type]" /> - <xsl:when test="//tp:struct[concat(@name, '[]')=$tp-type][string(@array-name) != '']" /> - <xsl:when test="//tp:mapping[concat(@name, '[]')=$tp-type][string(@array-name) != '']" /> - <xsl:when test="//tp:struct[@name=$tp-type]" /> - <xsl:when test="//tp:enum[@name=$tp-type]" /> - <xsl:when test="//tp:enum[concat(@name, '[]')=$tp-type]" /> - <xsl:when test="//tp:flags[@name=$tp-type]" /> - <xsl:when test="//tp:flags[concat(@name, '[]')=$tp-type]" /> - <xsl:when test="//tp:mapping[@name=$tp-type]" /> - <xsl:when test="//tp:external-type[concat(@name, '[]')=$tp-type]" /> - <xsl:when test="//tp:external-type[@name=$tp-type]" /> + <xsl:when test="//tp:simple-type[@name=$single-type]" /> + <xsl:when test="//tp:struct[@name=$single-type]" /> + <xsl:when test="//tp:enum[@name=$single-type]" /> + <xsl:when test="//tp:flags[@name=$single-type]" /> + <xsl:when test="//tp:mapping[@name=$single-type]" /> + <xsl:when test="//tp:external-type[@name=$single-type]" /> <xsl:otherwise> <xsl:message terminate="yes"> <xsl:text>ERR: Unable to find type '</xsl:text> |