msd-expand.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

string canonical - source
Which cannonical form to produce
string header - source
Output header row in table? NOT YET!!
string lang-in - source
Language of input MSDs
string lang-out - source
Language of output MSDs
string modes - source
What to output
string msds - source
List of input MSDs, separated by spaces

Variables Summary

Primary separator between input MSD and result
Secondary separator between features

Match Templates Summary

Output expanded MSD list as table
tei:row[@role='attribute'] (param: string codestring modemode: expand) - source
Expand one feature
tei:row[@role='type'] (param: string codestring modemode: expand) - source
Expand category value
tei:row[@role='value'] (param: string codestring modemode: expand) - source
Expand attribute value
tei:row (param: codemode: position) - source
No short description available
tei:table[@n='msd.cat'] (param: codemode: position) - source
No short description available

Named Templates Summary

No short description available
canon (param: attsmsd-attsresultmode) - source
No short description available
canon-output (param: attmsd-attsresult) - source
No short description available
expand (param: codemode) - source
No short description available
expand-feat-mode (param: string nstring catstring codesstring mode) - source
Expand one feature for given mode
expand-msd (param: string msdstring modes) - source
Expand one MSD
expand-msd-mode (param: string msdstring mode) - source
Expand one MSD for given mode
expand-msds (param: string msds) - source
Split the list of MSDs and process each
not-applicable (param: modeatt) - source
No short description available

Parameters Detail

string canonical - source
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 The effect of this parameter is mode dependent, e.g. hyphens cannot be deleted in the middle of the output MSD string.
none
string header - source
Output header row in table? NOT YET!!
yes
string lang-in - source
Language of input MSDs
en
string lang-out - source
Language of output MSDs
en
string modes - source
What to output
Modes should be given as space separated list. id = input MSD; msd = output MSD; collate = output collation (sort key) of MSD, e.g. 1S120200, hyphen maps to 00. cat = category (part-of-speech) att = attributes and category val = values attval = pairs attribute=value brief = decorated values, for readibility, e.g. +animate
verbose
string msds - source
List of input MSDs, separated by spaces
If parameter is not set, the MSDs are taken from the specifications. NOT YET!!

Variables Detail

Primary separator between input MSD and result
Secondary separator between features

Match Templates Detail

Output expanded MSD list as table
tei:row[@role='attribute'] (param: string codestring modemode: expand) - source
Expand one feature
Parameters:
string code - Value code to process.
string mode - Output mode.
tei:row[@role='type'] (param: string codestring modemode: expand) - source
Expand category value
Parameters:
string code - Category code to process.
string mode - Output mode.
tei:row[@role='value'] (param: string codestring modemode: expand) - source
Expand attribute value
Parameters:
string code - Code to process.
string mode - Output mode.
tei:row (param: codemode: position) - source
No short description available
Parameters:
code -
tei:table[@n='msd.cat'] (param: codemode: position) - source
No short description available
Parameters:
code -

Named Templates Detail

No short description available
canon (param: attsmsd-attsresultmode) - source
No short description available
Parameters:
atts -
msd-atts -
result -
mode -
canon-output (param: attmsd-attsresult) - source
No short description available
Parameters:
att -
msd-atts -
result -
expand (param: codemode) - source
No short description available
Parameters:
code -
mode -
expand-feat-mode (param: string nstring catstring codesstring mode) - source
Expand one feature for given mode
Parameters:
string n - Position in MSD string, category=0.
string cat - Category key for table.
string codes - MSD suffix to process.
string mode - Output mode.
expand-msd (param: string msdstring modes) - source
Expand one MSD
Parameters:
string msd - MSD to process.
string modes - Output modes.
expand-msd-mode (param: string msdstring mode) - source
Expand one MSD for given mode
Parameters:
string msd - MSD to process.
string mode - Output mode.
expand-msds (param: string msds) - source
Split the list of MSDs and process each
Parameters:
string msds - MSDs to process.
not-applicable (param: modeatt) - source
No short description available
Parameters:
mode -
att -