Sha256: 2184ed9ec6c1dcce9acbf383d7f60cfa79139e0a698bc8fc7ce8436a1ba797bc

Contents?: true

Size: 1.57 KB

Versions: 3

Compression:

Stored size: 1.57 KB

Contents

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="../../src/schemas/xspec.rnc" type="application/relax-ng-compact-syntax"?>
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec" schematron="demo-04.sch"
    xmlns:ex1="http://example.com/ns1" xmlns:ex2="http://example.com/ns2" xmlns:ex3="http://example.com/ns3">
    
    <x:scenario label="demo 4">
        <x:scenario label="XPath location with namespaces">
            <x:context>
                <ex1:article>
                    <ex3:sec>
                        <ex2:para>paragraph 1</ex2:para>
                    </ex3:sec>
                    <ex3:sec ex2:type="3">
                        <figure><img src="example.png"/></figure>
                    </ex3:sec>
                </ex1:article>
            </x:context>
            <x:scenario label="using oXygen's Copy XPath">
                <x:expect-assert location="/ex1:article[1]"/>
                <x:expect-assert location="/ex1:article[1]/ex3:sec[2]"/>
                <x:expect-assert location="/ex1:article[1]/ex3:sec[2]/figure[1]"/>
            </x:scenario>
            <x:scenario label="using XPath without [1] or leading /">
                <x:expect-assert location="ex1:article"/>
                <x:expect-assert location="ex1:article/ex3:sec[2]"/>
                <x:expect-assert location="ex1:article/ex3:sec[2]/figure"/>
            </x:scenario>
            <x:scenario label="expecting no assert should fail">
                <x:expect-not-assert location="ex1:article"/>
            </x:scenario>
        </x:scenario>
    </x:scenario>
</x:description>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple-xspec-wrapper-0.3.0-java vendor/xspec-1.0.0/tutorial/schematron/demo-04.xspec
simple-xspec-wrapper-0.2.0-java vendor/xspec-1.0.0/tutorial/schematron/demo-04.xspec
simple-xspec-wrapper-0.1.0-java vendor/xspec-1.0.0/tutorial/schematron/demo-04.xspec