msd-convert2text.xsl

Converts a list of MSDs from the common to language specific format or vice-versa.
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 common - source
Take as reference the common tables, rather than language specific tables (which is the default)
string header - source
Output header row in table if set
string output - source
What to output as intermediary format
string specs - source
A MULTEXT-East morphosyntactic specification file

Variables Summary

string err - source
Error mark
string localise - source
Output localisations for the features
Primary separator in table
Secondary separator in table (between features)

Match Templates Summary

Sanity check and process
tei:row[@role='attribute'] (param: outputstring codelocalisationlanguagemode: expand) - source
Expand one feature
tei:row[@role='type'] (param: outputstring codelocalisationlanguagemode: expand) - source
Expand category
tei:table (param: outputstring msdpositionlocalisationlanguagemode: expand) - source
Expand one MSD, with context node appropriate PoS table
tei:row[@role='type'] (param: outputstring codelocalisationlanguagemode: expand-value) - source
Expand category value
tei:row[@role='value'] (param: outputstring codelocalisationlanguagemode: expand-value) - source
Expand attribute value
tei:row (param: codelocalisationmode: position) - source
No short description available
tei:table[@n='msd.cat'] (param: categorymode: position) - source
No short description available
tei:cell[@role='msd'] (param: output) - source
Expand one MSD
Process table with MSDs

Named Templates Summary

cat-table (param: commonlocalisationlanguagecat-code) - source
No short description available
convert (param: attspositioncategory) - source
No short description available
pad (param: len) - source
No short description available
strip (param: msd) - source
No short description available
warn (param: textoutputcodelocalisationlanguage) - source
Warn on STDERR about problems

Parameters Detail

string canonical - source
Which cannonical form to produce
Should always be none!
none
string common - source
Take as reference the common tables, rather than language specific tables (which is the default)
string header - source
Output header row in table if set
string output - source
What to output as intermediary format
Should always be attval!
attval
string specs - source
A MULTEXT-East morphosyntactic specification file
Needs to contain both the common and language specific tables for the chosen language.

Variables Detail

string err - source
Error mark
!?*
string localise - source
Output localisations for the features
MUST BE en.
en
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

Sanity check and process
tei:row[@role='attribute'] (param: outputstring codelocalisationlanguagemode: 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 -
tei:row[@role='type'] (param: outputstring codelocalisationlanguagemode: expand) - source
Expand category
Parameters:
output -
string code - Category code to process.
localisation -
language -
tei:table (param: outputstring msdpositionlocalisationlanguagemode: expand) - source
Expand one MSD, with context node appropriate PoS table
Parameters:
output -
string msd - MSD to process.
position -
localisation -
language -
tei:row[@role='type'] (param: outputstring codelocalisationlanguagemode: expand-value) - source
Expand category value
Parameters:
output -
string code - Category code to process.
localisation -
language -
tei:row[@role='value'] (param: outputstring codelocalisationlanguagemode: expand-value) - source
Expand attribute value
Parameters:
output -
string code - Code to process.
localisation -
language -
tei:row (param: codelocalisationmode: position) - source
No short description available
Parameters:
code -
localisation -
tei:table[@n='msd.cat'] (param: categorymode: position) - source
No short description available
Parameters:
category -
tei:cell[@role='msd'] (param: output) - source
Expand one MSD
Parameters:
output -
Process table with MSDs
Copy input from table and add target MSD column.

Named Templates Detail

cat-table (param: commonlocalisationlanguagecat-code) - source
No short description available
Parameters:
common -
localisation -
language -
cat-code -
convert (param: attspositioncategory) - source
No short description available
Parameters:
atts -
position -
category -
pad (param: len) - source
No short description available
Parameters:
len -
strip (param: msd) - source
No short description available
Parameters:
msd -
warn (param: textoutputcodelocalisationlanguage) - source
Warn on STDERR about problems
Parameters:
text -
output -
code -
localisation -
language -