Search found 14 matches

by sandrocchio_0.1
Wed Jun 27, 2012 6:59 pm
Forum: General XML Questions
Topic: XQuery xml as external variable
Replies: 3
Views: 2274

Re: XQuery xml as external variable

thanks!
by sandrocchio_0.1
Thu Jan 05, 2012 6:54 pm
Forum: XQuery
Topic: function parameter - enforce xsi:type
Replies: 8
Views: 5304

Re: function parameter - enforce xsi:type

declare function local:matchType( $input as element() ) as element(*,cdm-base:ProductComponent) { <cdm-base:product xsi:type="cdm-base:ProductComponent" /> }; while typing F [Saxon-EE XQuery 9.3.0.5] Required item type of result of function local:matchType() is element(*, ProductComponent...
by sandrocchio_0.1
Thu Jan 05, 2012 5:21 pm
Forum: XQuery
Topic: function parameter - enforce xsi:type
Replies: 8
Views: 5304

Re: function parameter - enforce xsi:type

to me sounds more like it trying to match the Qname with the type
by sandrocchio_0.1
Thu Jan 05, 2012 1:14 pm
Forum: XQuery
Topic: function parameter - enforce xsi:type
Replies: 8
Views: 5304

Re: function parameter - enforce xsi:type

declare function common:resolveElement( $anyElem as element(), $request as element(se-al:submitOrderRequest) ) as element()+ { if(fn:ends-with(fn:local-name($anyElem),"Ref")=fn:true()) then common:getElementByIdRefKey($request,$anyElem/text()) else $anyElem } This function simply checks a...
by sandrocchio_0.1
Wed Jan 04, 2012 7:45 pm
Forum: XQuery
Topic: function parameter - enforce xsi:type
Replies: 8
Views: 5304

Re: function parameter - enforce xsi:type

I am still having some difficulties in defining a function signature with parameters schema aware. I now have import schema namespace cdm-base="http://cdm.basic.upc.com" at "file:///trunk/common/schema/cdm-basic.xsd"; declare namespace se-al = "http://al.service.upc.com"...
by sandrocchio_0.1
Tue Jan 03, 2012 6:24 pm
Forum: XQuery
Topic: function parameter - enforce xsi:type
Replies: 8
Views: 5304

function parameter - enforce xsi:type

I am trying to use the following signature in my xquery function declare namespace cdm-base = "http://cdm.basic.upc.com"; ... declare function common:isMainProduct( $product as element(*,cdm-base:ProductComponent) .... just to make sure I got the right @xsi:type. Now, I am using Oxygen 13....
by sandrocchio_0.1
Tue Jan 03, 2012 6:15 pm
Forum: Common Problems
Topic: string treated as sequence
Replies: 2
Views: 1331

Re: string treated as sequence

thanks!
by sandrocchio_0.1
Mon Aug 22, 2011 6:31 pm
Forum: XQuery
Topic: import fn-bea libraries
Replies: 17
Views: 8574

Re: import fn-bea libraries

Hi Adria, thanks for the quick reply. I moved out the jars from the lib folder as you suggested. I've also set them onto the extension pannel but yet, doesn't work. It fails validating the xquery F [Saxon-PE XQuery 9.3.0.5] Cannot find a matching 2-argument function named {http://www.bea.com/xquery/...
by sandrocchio_0.1
Mon Aug 22, 2011 11:57 am
Forum: XQuery
Topic: import fn-bea libraries
Replies: 17
Views: 8574

import fn-bea libraries

Hi all, we'd like to use propetary functions from Oracle OSB on Oxygen xquery editor, such as fn-bea:date-from-string-with-format(). I've tried copying some xquery jars from the Oracle installation into Oxygen lib folder and declaring the namespace as declare namespace fn-bea = "oracle.xquery.X...
by sandrocchio_0.1
Fri Jul 01, 2011 6:28 pm
Forum: Common Problems
Topic: string treated as sequence
Replies: 2
Views: 1331

string treated as sequence

I've got this function which is giving me some strange errors during debug. xquery.xq Severity: fatal Description: A sequence of more than one item is not allowed as the first argument of string-length() ("Abonnement...", "film...", ...) Start location: 315:0 URL: http://www.w3.o...
by sandrocchio_0.1
Mon Jan 17, 2011 7:25 pm
Forum: General XML Questions
Topic: XQuery xml as external variable
Replies: 3
Views: 2274

XQuery xml as external variable

I have multiple XML files tha I need to pass as extermal variables

for istance
declare variable $myVar as element(*) external;

how do I declare them on the transformations scenario - parameters?

thanks
Alessandro Ilardo
by sandrocchio_0.1
Tue Nov 23, 2010 5:25 pm
Forum: XML Schemas
Topic: Schematron - Invalid character (:) in expression
Replies: 2
Views: 1560

Re: Schematron - Invalid character (:) in expression

thanks, that fixed the issue.
by sandrocchio_0.1
Tue Nov 23, 2010 4:13 pm
Forum: XML Schemas
Topic: Schematron - Invalid character (:) in expression
Replies: 2
Views: 1560

Schematron - Invalid character (:) in expression

Hello there, I am getting this error on an xml validation against a Schematron file. I guess the error is related to XPath, so I've just set from the preference panel Schematron must use XPath 2.0 by default. Nothing changed and the Xpath on the sch file has been successfully tested on the XPath edi...

Go to advanced search