mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add xspec as XML file extension (#3702)
This commit is contained in:
committed by
Paul Chaignon
parent
9a6c3f2c4d
commit
e9ec699931
@@ -4872,6 +4872,7 @@ XML:
|
||||
- ".xml.dist"
|
||||
- ".xproj"
|
||||
- ".xsd"
|
||||
- ".xspec"
|
||||
- ".xul"
|
||||
- ".zcml"
|
||||
filenames:
|
||||
|
||||
16
samples/XML/xquery-tutorial.xspec
Normal file
16
samples/XML/xquery-tutorial.xspec
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec"
|
||||
xmlns:functx="http://www.functx.com"
|
||||
query="http://www.functx.com"
|
||||
query-at="xquery-tutorial.xq">
|
||||
|
||||
<x:scenario label="Calling function capitalize-first">
|
||||
<x:call function="functx:capitalize-first">
|
||||
<x:param select="'hello'"/>
|
||||
</x:call>
|
||||
|
||||
<x:expect label="should capitalize the first character of the string" select="'Hello'"/>
|
||||
|
||||
</x:scenario>
|
||||
|
||||
</x:description>
|
||||
Reference in New Issue
Block a user