[tei-council] DCR alignment inside ODD

stuart yeates syeates at gmail.com
Mon Apr 30 06:18:10 EDT 2012


On 26/04/12 08:59, Sebastian Rahtz wrote:
>
> On 25 Apr 2012, at 21:40, Piotr Bański wrote:
>
>> I'm working on the ISO DCR / ISOcat issues.[1] Got stuck at the point of
>> adding the relevant pieces of text to the Guidelines.
>>
>> The enlightened way to align grammatical categories with the values of
>> the DCR is to put the appropriate references into the ODD, and I guess
>> <equiv>  is the ideal place for that.
>>
>> I imagine, and please correct me if I am wrong, that for elements such
>> as<pos>, this action may be trivial:
>>
>> <elementSpec ident="pos" mode="change">
>>    <equiv dcr:datcat="http://www.isocat.org/datcat/DC-1345"/>
>> </elementSpec>
>
> <equiv url="http://www.isocat.org/datcat/DC-1345"/>  is the syntax, I think.

I've been looking at http://www.isocat.org/datcat/DC-1345 in more detail.

I've written up a quick XSLT to transform the webpage into a DTD (see 
both transform and output below). Feedback welcome. Is it worth 
including this in the TEI distribution?

I've also submitted a replace URL for the reference at 
https://sourceforge.net/tracker/index.php?func=detail&aid=3522517&group_id=244572&atid=1126007 
(Note that's the ISOCat tracker not the TEI tracker).

cheers
stuart

?xml version="1.0"?>
<xsl:stylesheet  version="1.0"
		 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		 >
      <xsl:output method="text"/>

   <xsl:template match="/">
     <xsl:text>#Attributes from http://www.isocat.org/rest/dc/1345
</xsl:text>

     <xsl:text><![CDATA[<!ATTLIST dcr:cat type (
]]></xsl:text>
     <xsl:apply-templates select="//tr[.//a/@datcat]"/>
     <xsl:text><![CDATA[) "">]]></xsl:text>
   </xsl:template>

   <xsl:template match="tr" >
     <xsl:value-of select="td[2]//a"/>
     <xsl:text><![CDATA[|
]]></xsl:text>
   </xsl:template>

</xsl:stylesheet>


#Attributes from http://www.isocat.org/rest/dc/1345
<!ATTLIST dcr:cat type (
adjective|
adposition|
adverb|
adverbialPronoun|
affirmativeParticle|
affixedPersonalPronoun|
allusivePronoun|
article|
bullet|
cardinalNumeral|
circumposition|
closeParenthesis|
collectivePronoun|
colon|
comma|
commonNoun|
comparativeParticle|
compoundPreposition|
conditionalParticle|
conditionalPronoun|
conjunction|
coordinatingConjunction|
coordinationParticle|
copula|
deficientVerb|
definiteArticle|
demonstrativeDeterminer|
demonstrativePronoun|
determiner|
diminutiveNoun|
distinctiveParticle|
echo|
emphaticPronoun|
exclamativeDeterminer|
exclamativePoint|
exclamativePronoun|
existentialPronoun|
fusedPreposition|
fusedPrepositionDeterminer|
fusedPrepositionPronoun|
fusedPronounAuxiliary|
futureParticle|
generalAdverb|
generalizationWord|
genericNumeral|
impersonalPronoun|
indefiniteArticle|
indefiniteCardinalNumeral|
indefiniteDeterminer|
indefiniteMultiplicativeNumeral|
indefiniteOrdinalNumeral|
indefinitePronoun|
infinitiveParticle|
interjection|
interrogativeCardinalNumeral|
interrogativeDeterminer|
interrogativeMultiplicativeNumeral|
interrogativeOrdinalNumeral|
interrogativeParticle|
interrogativePronoun|
interrogativeRelativePronoun|
invertedComma|
irreflexivePersonalPronoun|
lightVerb|
mainVerb|
modal|
multiplicativeNumeral|
negativeParticle|
negativePronoun|
noun|
numeral|
numeralFraction|
openParenthesis|
ordinalAdjective|
participleAdjective|
particle|
particleAdverb|
partitiveArticle|
pastParticipleAdjective|
personalPronoun|
plainVerb|
point|
possessiveAdjective|
possessiveDeterminer|
possessiveParticle|
possessivePronoun|
possessiveRelativePronoun|
postposition|
preposition|
prepositionalAdverb|
presentParticipleAdjective|
presentativePronoun|
pronominalAdverb|
pronoun|
properNoun|
punctuation|
qualifierAdjective|
questionMark|
reciprocalPronoun|
reduplicative|
reflexiveDeterminer|
reflexivePersonalPronoun|
reflexivePossessivePronoun|
relationNoun|
relativeDeterminer|
relativeParticle|
relativePronoun|
semiColon|
simplePreposition|
slash|
strongPersonalPronoun|
subordinatingConjunction|
superlativeParticle|
suspensionPoints|
unclassifiedParticle|
verb|
voiceNoun|
weakPersonalPronoun|
adjective|
adverb|
noun|
verb|
) "">






More information about the tei-council mailing list