Subject:Addnamespace using xquery Author:Rajat Nair Date:07 Aug 2007 04:43 PM
Hi,
I mapped out a OAG format xml to a xcbl sox type xml using the mapping utility in stylus studio, and finally converted the generated xquery code into java.When i now pass a OAG fomat xml to this code from the command line the new xml generated does not have the namespace
"?soxtype urn:x-commerceone:document:com:commerceone:XCBL30:XCBL30.sox$1.0?> <?import urn:x-commerceone:document:com:commerceone:XCBL30:XCBL30.sox$1.0?> " that xcbl sox(3.0) type xml's usually have.I was wondering if there was any way to add the name space using the xquery code or during mapping of the 2 xml files??
The second question i had was when i try to generate the java code there is no option in the trial version i have to generate a standalone application as shown in the tutorial?
I hope i can get these issues resolved at the earliest.
If this is not what you are looking for could you please send the xquery code and an example of XML input and the desired result to stylus-field-report@progress.com?
Subject:Addnamespace using xquery Author:Rajat Nair Date:08 Aug 2007 12:54 PM
Hi ,
I added the processing instruction to the xquery file i had and now this error gets thrown out
XQuery starting.
Error on line 6 column 15 of file:///c:/conversion/first_trial.xquery:
XPST0003: XQuery syntax error in #...sox$1.0"} <OrderResponse> <#:
Unexpected token ">" beyond end of query
Exception in thread "main" ; SystemID: file:///c:/conversion/first_trial.xquery;
Line#: 6; Column#: 15
net.sf.saxon.trans.StaticError: XQuery syntax error in #...sox$1.0"} <OrderRespo
nse> <#:
Unexpected token ">" beyond end of query
at net.sf.saxon.query.QueryParser.grumble(QueryParser.java:325)
at net.sf.saxon.expr.ExpressionParser.grumble(ExpressionParser.java:136)
at net.sf.saxon.query.QueryParser.parseQuery(QueryParser.java:260)
at net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:
99)
at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext
.java:452)
at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext
.java:487)