Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Combination of @test and content in x:expect doesn't work #46

Open

Description

@GoogleCodeExporter
Following xspec:
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec"
               stylesheet="identical.xsl">

    <x:scenario label="Test combination of expect content and @test attribute">
        <x:context>
            <topic>
                <body>Body</body>
            </topic>
        </x:context>

        <x:expect label="Should select one element from result and compare to content" test="descendant::body">
            <body>Body</body>
        </x:expect>
    </x:scenario>

</x:description>

using identity transformation:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:output indent="no"/>

    <xsl:template match="/">
        <xsl:apply-templates/>
    </xsl:template>

    <xsl:template match="*">
        <xsl:copy>
            <xsl:copy-of select="@*"/>
            <xsl:apply-templates/>
        </xsl:copy>
    </xsl:template>

</xsl:stylesheet>

always fail

Original issue reported on code.google.com by volodymy...@gmail.com on 7 May 2012 at 2:03

Activity

  1. added 3 commits that reference this issue on Jan 17, 2017
    187f157
    ba5f97c
    441eae6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions