hi every one
i use the following xquery query in java , even i wrote the function
"declare xmlspace strip;"at the begining of the query i still get the
name space declaration associate with the elements name
and i have no idia on how to strip all the namspaces
any help please
public static String theBodyofquery6(String last,String gridRef,String
Stime,String Sdate,String Etime,String Edate){
String result= " declare xmlspace strip; <SystemRecord> {
for $a in doc(\"observation.xml\")//observation where $a
/last=\""+last+"\" and $a/gridRef=\""+gridRef+"\" and $a
/time >=\""+Stime+"\" and $a /date >=\""+Sdate+"\" and $a
/time <=\""+Etime+"\" and $a /date <=\""+Edate+"\" return
<item> { $a /* } </item> } </SystemRecord>";
return result;
}
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--