Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jun 8, 2015 · 3 comments
Open

Comments

@GoogleCodeExporter
Copy link

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

innovimax pushed a commit to innovimax/xspec that referenced this issue Jan 17, 2017
innovimax pushed a commit to innovimax/xspec that referenced this issue Jan 17, 2017
innovimax pushed a commit to innovimax/xspec that referenced this issue Jan 17, 2017
* Add test case for Windows batch script for issue expath#46 / pr expath#48
* Align batch script with shell script to mimic setup/teardown functions in batch script (82a3d49)
- Use the same output dir and file as the shell script for .gitignore to fully take effect on windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant