msd-expand2text.xsl
Expands a list of MSDs according to the morphosyntactic specifications.
Author:
Tomaž Erjavec, http://nl.ijs.si/et/
Copyright:
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free Software
Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You
should have received a copy of the GNU Lesser General Public License along with this
library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite
330, Boston, MA 02111-1307 USA
Parameters Summary
Take as reference the common tables, rather than language specific tables
(which is the default)
Variables Summary
Primary separator in table
Secondary separator in table (between features)
Match Templates Summary
tei:row[@role='attribute'] (param: output, string code, localisation, languagemode: expand) - source
Expand one feature
Expand category
Expand one MSD, with context node appropriate PoS table
tei:row[@role='type'] (param: output, string code, localisation, languagemode: expand-value) - source
Expand category value
tei:row[@role='value'] (param: output, string code, localisation, languagemode: expand-value) - source
Expand attribute value
No short description available
Expand one MSD
Named Templates Summary
Return all defined attributes - used for full canonical output
Output header row
Output MSD row
Parameters Detail
Which cannonical form to produce
Features can be unspecified (have as
their value a hyphen, '-', meaning "non-applicable"), and this parameters determines if and
which such features should be output. Valid values are: none = only features where value is
specified; cat = all features valid for the category; full = all features regardless of the
category. This parameter only affects 'val' and 'attval' modes,
with canonical=full reserved for 'attval'.
noneTake as reference the common tables, rather than language specific tables
(which is the default)
Output localisations for the features
Only works of the specifications
contain the localisations for the language.
en What to output
Value can be one or several (space separated) values: id
= output input MSD; mds = output (localised or common) MSD; check = output only non-valid
MSDs; val = output brief MSD expansion, i.e. val1 val2 val3 for defined att; attval = output
verbose attribute=value MSD expansion, i.e. att1=val1 att2=val2 att3=0 for all attributes;
collate = output sort key of MSD, e.g. 1S120200, hyphen maps to 0.
attvalVariables Detail
Primary separator in table
Only important if text output is
selected.
Secondary separator in table (between features)
Only important if text
output is selected.
Match Templates Detail
tei:row[@role='attribute'] (param: output, string code, localisation, languagemode: expand) - source
Expand one feature
Context node should be the correct attribute row for code.
Parameters:
output -
string code - Attribute-value code to process.
localisation -
language -
Expand category
Parameters:
output -
string code - Category code to
process.
localisation -
language -
Expand one MSD, with context node appropriate PoS table
Parameters:
output -
string msd - MSD to process.
position -
localisation -
language -
tei:row[@role='type'] (param: output, string code, localisation, languagemode: expand-value) - source
Expand category value
Parameters:
output -
string code - Category code to
process.
localisation -
language -
tei:row[@role='value'] (param: output, string code, localisation, languagemode: expand-value) - source
Expand attribute value
Parameters:
output -
string code - Code to process.
localisation -
language -
No short description available
Parameters:
code -
localisation -
No short description available
Parameters:
category -
Expand one MSD
Parameters:
output -
Named Templates Detail
Return all defined attributes - used for full canonical output
Parameters:
language -
localise -
No short description available
Parameters:
localisation -
language -
cat-code -
Output header row
Also check if $output is valid.
Parameters:
output -
Output MSD row
Parameters:
output -