Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to do count and divide by 10 in xquery

User_CROFUJul 31 2013 — edited Jul 31 2013

Hi all,

I need to count the number of elements and divide it by 10 in my xquery

I am doing as below

for $varabcd (1 to (fn:count($anyType1/*:adad)) div 10)

when i run I am getting the below exception

Error executing the XQuery transformation: Error parsing XML: line 11, column 67: {err}XP0006: "10 ({http://www.w3.org/2001/XMLSchema}decimal)": bad value for type {http://www.w3.org/2001/XMLSchema}integer


could you please help me in this.


Regards

Phanindra.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 28 2013
Added on Jul 31 2013
1 comment
1,505 views