[Bug 3972] Running Schema Import Feature tests

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3972

           Summary: Running Schema Import Feature tests
           Product: XML Query Test Suite
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


Could you please offer some guidance on how to run Schema Import Feature
queries in conjunction with static typing.  To perform static type checking,
the type of $input-context needs to be specified.  However, in
SpecialTypes.xsd, the element "root" is defined using an anonymous type.



(: Name: ForExprType026 :)
(: Description: FLWOR expressions with type declaration (attribute type). Match
user defined simple type on attribute :)


(: insert-start :)
import schema default element namespace "http://typedecl";

declare variable $input-context external;
(: insert-end :)

for $test as attribute( att,Enumeration ) in
$input-context/root/UserDefinedSimpleTypeAttribute/@att
return data( $test )

Received on Thursday, 16 November 2006 12:44:24 UTC