RE: Errors on alpha MOK checker at m.youtube.com

This bug appears in current version and happens because of there are two title tags in the html code.

We have change the xslt so only the last title tag is processed, we think this is the default browser behaviour. Should we check both title tags?

>>-----Mensaje original-----
>>De: public-mobileok-checker-request@w3.org [mailto:public-mobileok-
>>checker-request@w3.org] En nombre de Sean Owen
>>Enviado el: miércoles, 06 de febrero de 2008 16:53
>>Para: Appelquist, Daniel, VF-Group
>>CC: public-mobileok-checker
>>Asunto: Re: Errors on alpha MOK checker at m.youtube.com
>>
>>This sounds like something we fixed up a while ago but I will
>>double-check it, thanks.
>>
>>On Feb 6, 2008 8:54 AM, Appelquist, Daniel, VF-Group
>><Daniel.Appelquist@vodafone.com> wrote:
>>>
>>>
>>>
>>>
>>> FYI, the checker is erroring out on m.youtube.com - looks like an error
>>on
>>> the page is causing a java exception?
>>>
>>> Dan
>>>
>>> The following errors were encountered when trying to parse
>>> http://m.youtube.com/: Info: Writing MOKI document to /dev/null
>>> Error on line 47 of
>>> file:/home/dom/2007/mobileok-
>>ref/build/org/w3c/mwi/mobileok/basic/xslt/PageTitleTest.xsl:
>>>   XPTY0004: A sequence of more than one item is not allowed as the first
>>> argument of
>>>   normalize-space() ("YouTube - Broadcast Yourself.", "YouTube -
>>Broadcast
>>> Yourself.")
>>> Exception in thread "main" org.w3c.mwi.mobileok.basic.TestException:
>>> PageTitleTest
>>>         at
>>>
>>org.w3c.mwi.mobileok.basic.AbstractXSLTTestImplementation.runTest(Abstract
>>XSLTTestImplementation.java:37)
>>>         at org.w3c.mwi.mobileok.basic.Tester.runTests(Tester.java:71)
>>>         at org.w3c.mwi.mobileok.basic.Tester.main(Tester.java:194)
>>> Caused by: net.sf.saxon.trans.DynamicError: A sequence of more than one
>>item
>>> is not allowed as the first argument of normalize-space() ("YouTube -
>>> Broadcast Yourself.", "YouTube - Broadcast Yourself.")
>>>         at net.sf.saxon.expr.Expression.typeError(Expression.java:791)
>>>         at
>>>
>>net.sf.saxon.expr.CardinalityChecker.evaluateItem(CardinalityChecker.java:
>>284)
>>>         at
>>>
>>net.sf.saxon.functions.NormalizeSpace.evaluateItem(NormalizeSpace.java:76)
>>>         at
>>>
>>net.sf.saxon.expr.ValueComparison.effectiveBooleanValue(ValueComparison.ja
>>va:545)
>>>         at
>>>
>>net.sf.saxon.expr.BooleanExpression.effectiveBooleanValue(BooleanExpressio
>>n.java:174)
>>>         at
>>>
>>net.sf.saxon.expr.BooleanExpression.effectiveBooleanValue(BooleanExpressio
>>n.java:174)
>>>         at
>>net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:334)
>>>         at net.sf.saxon.instruct.Template.expand(Template.java:112)
>>>         at
>>net.sf.saxon.instruct.CallTemplate.process(CallTemplate.java:212)
>>>         at
>>> net.sf.saxon.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:243)
>>>         at
>>> net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:361)
>>>         at net.sf.saxon.expr.LetExpression.eval(LetExpression.java:229)
>>>         at
>>>
>>net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:396)
>>>         at
>>net.sf.saxon.instruct.Block.processLeavingTail(Block.java:365)
>>>         at
>>net.sf.saxon.instruct.Instruction.process(Instruction.java:91)
>>>         at
>>>
>>net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.jav
>>a:240)
>>>         at
>>net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:98)
>>>         at
>>>
>>net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:31
>>7)
>>>         at
>>net.sf.saxon.Controller.transformDocument(Controller.java:1705)
>>>         at net.sf.saxon.Controller.transform(Controller.java:1513)
>>>         at
>>>
>>org.w3c.mwi.mobileok.basic.AbstractXSLTTestImplementation.runTest(Abstract
>>XSLTTestImplementation.java:32)
>>>         ... 2 more
>>>
>>>
>>>
>>>
>>>
>>>
>>> Daniel K. Appelquist
>>>  Senior Technology Strategist
>>>  Vodafone Group Research & Development
>>>
>>>  Mobi: +44 7748 111 635
>>>
>>>
>>> Fax: +44 20 7212 0391
>>>
>>>  Email:  daniel.appelquist@vodafone.com
>>>
>>>  Vodafone Group Services Limited
>>>  80 Strand, London, WC2R 0RJ, United Kingdom
>>>
>>>

Received on Wednesday, 6 February 2008 16:51:31 UTC