Saturday, July 14, 2012

osb sample xquery

Since I always need an XQuery skeleton and I am too lazy to run Eclipse, here is one:

xquery version "1.0" encoding "Cp1252";
(:: pragma  parameter="$anyType1" type="xs:anyType" ::)
(:: pragma  type="xs:anyType" ::)

declare namespace xf = "http://tempuri.org/OSB%20Project%201/Sample/";

declare function xf:Sample($anyType1 as element(*))
    as element(*) {
        {count($anyType1)}
};

declare variable $anyType1 as element(*) external;

xf:Sample($anyType1)



No comments: