home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacFormat UK 160 - Disc 2
/
MF_UK_160_2.iso
/
pc
/
DiscContent
/
Trials
/
oxygen
/
samples
/
schematron
/
paragraph
/
paragraph.sch
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
Extensible Markup Language
|
2005-07-21
|
572 b
|
10 lines
<?xml version="1.0" encoding="UTF-8"?>
<!-- Sample from Zvon Schematron tutorial (www.zvon.org)
Description: A paragraph in XML 2 can only start with words specified in XML 1 (file source1.xml).-->
<schema xmlns="http://www.ascc.net/xml/schematron" >
<pattern name="Start of paragraph restriction.">
<rule context="p">
<assert test="document('source1.xml')//*[name()=substring-before(current(),' ')]">The word at the beginning of sentence is not listed in XML 1.</assert>
</rule>
</pattern>
</schema>