- From: Philip <Philip.Oduffy@ul.ie>
- Date: Thu, 21 Feb 2013 15:29:47 +0000
- To: public-multilingualweb-lt@w3.org
- Message-ID: <51263D6B.6070701@ul.ie>
Hey Guys, I'm having some issues trying to get my parser to output mt-confidence correctly. As far as I'm aware the mt-confidence's data category information is inherited by the textual content of the element, including child elements, *but excluding attributes*. So in my datacategories-definition.xml I have the following line of code to deal with this: <inheritance appliesTo="onlyElements"/> I end up with the following output for mtconfidence3xml.xml: /text /text/@its:version /text/body[1] /text/body[1]/p[1] /text/body[1]/p[1]/span[1] annotatorsRef="mt-confidence|file:///tools.xml#T1" mtConfidence="0.6982" /text/body[1]/p[1]/span[1]/@its:annotatorsRef /text/body[1]/p[1]/span[1]/@its:mtConfidence /text/body[1]/p[1]/span[2] annotatorsRef="mt-confidence|file:///tools.xml#T2" mtConfidence="0.7982" /text/body[1]/p[1]/span[2]/@its:annotatorsRef /text/body[1]/p[1]/span[2]/@its:mtConfidence /text/body[1]/p[1]/span[3] annotatorsRef="mt-confidence|file:///tools.xml#T3" mtConfidence="0.9982" /text/body[1]/p[1]/span[3]/@its:annotatorsRef /text/body[1]/p[1]/span[3]/@its:mtConfidence /text/body[1]/p[1]/span[4] annotatorsRef="mt-confidence|file:///tools.xml#T4" mtConfidence="0.6982" /text/body[1]/p[1]/span[4]/@its:annotatorsRef /text/body[1]/p[1]/span[4]/@its:mtConfidence However the expected output shows rules on the attributes: /text /text/@its:version /text/body[1] /text/body[1]/p[1] /text/body[1]/p[1]/span[1] annotatorsRef="mt-confidence|file:///tools.xml#T1" mtConfidence="0.6982" /text/body[1]/p[1]/span[1]/@its:annotatorsRef *annotatorsRef="mt-confidence|file:///tools.xml#T1" * /text/body[1]/p[1]/span[1]/@its:mtConfidence *annotatorsRef="mt-confidence|file:///tools.xml#T1" * /text/body[1]/p[1]/span[2] annotatorsRef="mt-confidence|file:///tools.xml#T2" mtConfidence="0.7982" /text/body[1]/p[1]/span[2]/@its:annotatorsRef *annotatorsRef="mt-confidence|file:///tools.xml#T2" * /text/body[1]/p[1]/span[2]/@its:mtConfidence *annotatorsRef="mt-confidence|file:///tools.xml#T2" * /text/body[1]/p[1]/span[3] annotatorsRef="mt-confidence|file:///tools.xml#T3" mtConfidence="0.9982" /text/body[1]/p[1]/span[3]/@its:annotatorsRef *annotatorsRef="mt-confidence|file:///tools.xml#T3" * /text/body[1]/p[1]/span[3]/@its:mtConfidence *annotatorsRef="mt-confidence|file:///tools.xml#T3" * /text/body[1]/p[1]/span[4] annotatorsRef="mt-confidence|file:///tools.xml#T4" mtConfidence="0.6982" /text/body[1]/p[1]/span[4]/@its:annotatorsRef *annotatorsRef="mt-confidence|file:///tools.xml#T4" * /text/body[1]/p[1]/span[4]/@its:mtConfidence *annotatorsRef="mt-confidence|file:///tools.xml#T4" * If anyone has any ideas I'd be grateful. Thanks, Philip
Received on Thursday, 21 February 2013 15:30:14 UTC