Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions P5/Source/Specs/attList.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,21 @@
</attList>
The sequence should be ('klaatu','bodsworth','rugglesby','').
-->
<sch:let name="nsidents" value="for $ad in $defs return if ( $ad[ parent::tei:attList[ @org eq 'choice'] and preceding-sibling::tei:attDef[ @ident eq $ad/@ident and ( @ns, $notanamespace )[1] eq ( $ad/@ns, $notanamespace )[1] ] ] ) then '' else normalize-space( if ($ad/@ns) then 'Q{'||$ad/@ns||'}'||$ad/@ident else $ad/@ident ) "/>

<sch:let name="nsidents" value="for $ad in $defs return
if ( $ad[
parent::tei:attList[ @org eq 'choice']
and
preceding-sibling::tei:attDef[
@ident eq $ad/@ident
and
( @ns, $notanamespace )[1] eq ( $ad/@ns, $notanamespace )[1]
]
]
)
then ''
else normalize-space( if ($ad/@ns) then 'Q{'||$ad/@ns||'}'||$ad/@ident else $ad/@ident )
"/>
<!-- get a sequence of any that occur 2+ times: -->
<sch:let name="dups" value="for $a in $nsidents return ( $nsidents[ . eq $a ][2] )"/>
<!-- remove any duplicates from the list of duplicates (-: -->
Expand Down Expand Up @@ -161,4 +175,4 @@
<ptr target="#TDTAG"/>
<ptr target="#TDCLA"/>
</listRef>
</elementSpec>
</elementSpec>
46 changes: 28 additions & 18 deletions P5/Source/Specs/teidata.numeric.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,34 @@
<desc versionDate="2007-01-21" xml:lang="it">definisce la gamma di valori di attributi usati per
valori numerici</desc>
<content>
<alternate>
<dataRef name="double"/>
<dataRef name="token" restriction="(\-?[\d]+/\-?[\d]+)"/>
<dataRef name="decimal"/>
</alternate>
</content>
<remarks ident="teidata.numeric-remarks" versionDate="2009-06-01" xml:lang="en">
<alternate>
<dataRef name="double"/>
<dataRef name="token" restriction="(\-?[\d]+/\-?[\d]+)"/>
<dataRef name="decimal"/>
</alternate>
</content>
<remarks ident="teidata.numeric-remarks" versionDate="2026-09-11" xml:lang="en">
<p>Any numeric value, represented as a decimal number, in floating point format, or as a ratio.</p>
<p>To represent a floating point number, expressed in scientific notation, <soCalled>E
notation</soCalled>, a variant of <soCalled>exponential notation</soCalled>, may be used. In
this format, the value is expressed as two numbers separated by the letter E. The first
number, the significand (sometimes called the mantissa) is given in decimal format, while the
second is an integer. The value is obtained by multiplying the mantissa by 10 the number of
times indicated by the integer. Thus the value represented in decimal notation as 1000.0 might
be represented in scientific notation as 10E3.</p>
<p>A value expressed as a ratio is represented by two integer values separated by a solidus (/)
character. Thus, the value represented in decimal notation as 0.5 might be represented as a
ratio by the string 1/2.</p>
<p>To represent a floating point number expressed in normalized
scientific notation (a variant of exponential notation in which
the signifcand — sometimes called the mantissa — is between 1
and 10) the <term>E notation</term> system, used in many
<!-- see, e.g., https://en.wikipedia.org/wiki/Scientific_notation#E_notation -->
computer programming languages, may be used. In this format, the
value is expressed as two numbers separated by the letter
<q>E</q>. The first number — the significand — is given in
decimal format, while the second is an integer. The value is
obtained by multiplying the significand by 10 the number of
times indicated by the integer. Thus the current estimate of
world population (which is 8,315,973,550 in decimal notation)
<!-- per https://www.worldometers.info/ 2026-09-11T19:39:19Z -->
might be represented as ~8.316×10⁹ in normalized scientific
notation and as ~8.316E9 in E notation.</p>
<p>A value expressed as a ratio is represented by two integer
values separated by a slash (<q>/</q>, U+002F SOLIDUS)
character. Thus, the value represented in decimal notation as
<val>0.5</val> might be represented as a ratio by the string
<val>1/2</val>.</p>
</remarks>
<remarks ident="teidata.numeric-remarks" versionDate="2024-08-08" xml:lang="ja">
<p>浮動小数点形式の10進小数、あるいは比の形式で表現されるなんらかの数値。浮動小数点数を表現するには、<soCalled>指数表記</soCalled>の一種である科学的表記、通称<soCalled>E記法</soCalled>が使用できる。この形式では、値はEの文字で区切られた二つの数字で表現する。一つ目の数字である仮数は小数で、二つ目の数字は整数で表される。値は、仮数を〔二つ目の〕整数の示す回数だけ10倍することで得られる。したがって、10進小数で1000.0と表記されている値は、科学的表記では10E3となる。</p><p>比の値は、二つの整数を「/」で区切って表す。したがって、10進小数で0.5と表される値は、比としては1/2という文字列で表現できる。 </p>
Expand All @@ -50,4 +60,4 @@
barre oblique (/). Ainsi, la valeur représentée en notation décimale 0.5 pourrait être
représentée en fraction par la chaîne de caractères 1/2.</p>
</remarks>
</dataSpec>
</dataSpec>
Loading