Sign Up
Search
Options
search
Chat
Help
News
Log in
Not Logged in
Home
»
Boards
»
Stylus Studio Developer Network
»
XQuery Help and Discussion
»
generate a uuid
Topic
Prev Topic
Next Topic
next
Subject:
generate a uuid
Author:
David Mare
Date:
17 May 2011 11:22 PM
Originally Posted: 17 May 2011 11:21 PM
Hi, does anyone have an example of a function to generate a UUID in xQuery?
top
Subject:
generate a uuid
Author:
David Mare
Date:
19 May 2011 07:04 AM
Originally Posted: 19 May 2011 07:01 AM
Should have checked first! There's a very good post on the forum:
http://www.stylusstudio.com/ssdn/default.asp?action=9&read=8478&fid=57
Here's the code described:
declare namespace uuid = "ddtekjava:java.util.UUID";
declare function uuid:randomUUID() as ddtek:javaObject external;
declare function uuid:toString($uuid as ddtek:javaObject) as xs:string external;
<root>
{uuid:toString(uuid:randomUUID())}
</root>
Prev Topic
Next Topic
Powered by
Stylus Studio
, the world's leading
XML IDE
for
XML
,
XSLT
,
XQuery
,
XML Schema
,
DTD
,
XPath
,
WSDL
,
XHTML
,
SQL/XML
, and
XML Mapping
!
Go to Conference:
Select Conference
Stylus Studio Feature Requests
Stylus Studio Technical Forum
Website Feedback
XSLT Help and Discussion
XQuery Help and Discussion
Stylus Studio FAQs
Stylus Studio Code Samples & Utilities
Stylus Studio Announcements
go
Log In Options
Username:
Password:
Site Map
|
Privacy Policy
|
Terms of Use
|
Trademarks
Stylus Scoop XML Newsletter:
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.