apiblueprint中不相关的语法问题

时间:2015-07-05 12:58:47

标签: web-services rest apiblueprint

所以我一直在使用apiary.io设计这个REST API,我差不多完成了。 我得到的这个语法问题完全没有意义。 我对特定资源进行了[GET]操作但是看起来蜂房会将其与另一个资源的[GET]操作混淆并说

    <xsl:choose>
        <xsl:when test="/metadata/dataIdInfo[1]/tpCat/TopicCatCd[(. != '001') and (. != '002') and (. != '003') and (. != '004') and (. != '005') and (. != '006') and (. != '007') and (. != '008') and (. != '009') and (. != '010')]">
        <xsl:if test="/metadata/dataIdInfo[1]/tpCat/TopicCatCd[(. != '001')]">
         Farming |
        </xsl:if>   
        <xsl:if test="/metadata/dataIdInfo[1]/tpCat/TopicCatCd[(. != '002')]">
         Biologic |
        </xsl:if>   
        <xsl:if test="/metadata/dataIdInfo[1]/tpCat/TopicCatCd[(. != '003')]">
        Boundaries |
        </xsl:if>
        <xsl:if test="/metadata/dataIdInfo[1]/tpCat/TopicCatCd[(. != '004')]">
        Atmospheric |
        </xsl:if>
        <xsl:if test="/metadata/dataIdInfo[1]/tpCat/TopicCatCd[(. != '005')]">
        Economy |
        </xsl:if>
       </xsl:when>
       </xsl:choose>

以下是API链接:

https://app.apiary.io/kalematie/editor

语法问题在第987行

我想知道我是做错了还是工具中有错误。

提前致谢。

0 个答案:

没有答案