<path>
<path> (path) defines any line passing through two or more points within a surface element. [12.1 Digital Facsimiles 12.2.2 Embedded Transcription] | |||||||||
모듈 | transcr — Representation of Primary Sources | ||||||||
속성 |
|
||||||||
클럽 회원 | |||||||||
에 의해 포함된 | |||||||||
포함할 수 있다 | 공백 요소 | ||||||||
주석 |
Although the simplest form of a path is a straight line between two points, a line with more than two points may bend at any point. The order of coordinates in points is significant, because the line follows the coordinate sequence. To specify a closed polygon, use the zone element rather than the path element. |
||||||||
예 | |||||||||
Schematron | Since a path> represents a line with distinct start and end points, the last coordinate should
not be the same as the first coordinate.
<sch:rule context="tei:path[@points]"> <sch:let name="firstPair" value="tokenize( normalize-space( @points ), ' ')[1]"/> <sch:let name="lastPair" value="tokenize( normalize-space( @points ), ' ')[last()]"/> <sch:let name="firstX" value="xs:float( substring-before( $firstPair, ',') )"/> <sch:let name="firstY" value="xs:float( substring-after( $firstPair, ',') )"/> <sch:let name="lastX" value="xs:float( substring-before( $lastPair, ',') )"/> <sch:let name="lastY" value="xs:float( substring-after( $lastPair, ',') )"/> <sch:report test="$firstX eq $lastX and $firstY eq $lastY">The first and last elements of this path are the same. To specify a closed polygon, use the zone element rather than the path element. </sch:report> </sch:rule> |
||||||||
Content model |
<content> |
||||||||
선언 |
<rng:element name="path"> element path { att.global.attributes, att.global.rendition.attributes, att.global.linking.attributes, att.global.analytic.attributes, att.global.facs.attributes, att.global.change.attributes, att.global.responsibility.attributes, att.global.source.attributes, att.typed.attributes, att.written.attributes, att.coordinated.attribute.start, att.coordinated.attribute.ulx, att.coordinated.attribute.uly, att.coordinated.attribute.lrx, att.coordinated.attribute.lry, attribute points { list { teidata.point, teidata.point, teidata.point* } }?, empty } |