KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > saxon > functions > Data


1 package net.sf.saxon.functions;
2 import net.sf.saxon.expr.Atomizer;
3 import net.sf.saxon.expr.Expression;
4 import net.sf.saxon.expr.StaticContext;
5 import net.sf.saxon.trans.XPathException;
6
7 /**
8 * Implement XPath function fn:data()
9 */

10
11 public class Data extends CompileTimeFunction {
12
13     /**
14     * Simplify and validate.
15     */

16
17      public Expression simplify(StaticContext env) throws XPathException {
18         Atomizer a = new Atomizer(argument[0], env.getConfiguration());
19         return a.simplify(env);
20     }
21
22 }
23
24
25 //
26
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
27
// you may not use this file except in compliance with the License. You may obtain a copy of the
28
// License at http://www.mozilla.org/MPL/
29
//
30
// Software distributed under the License is distributed on an "AS IS" basis,
31
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
32
// See the License for the specific language governing rights and limitations under the License.
33
//
34
// The Original Code is: all this file.
35
//
36
// The Initial Developer of the Original Code is Michael H. Kay.
37
//
38
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
39
//
40
// Contributor(s): none.
41
//
42
Popular Tags