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
Conferences
Stylus Studio Feature Requests
(1192)
Stylus Studio Technical Forum
(14621)
Website Feedback
(249)
XSLT Help and Discussion
(7625)
XQuery Help and Discussion
(2017)
left/right presentation
(3)
new to stylus - connecting to ...
(2)
XQuery problem with namespaces
(4)
.conv and xquery problem
(3)
Can pass text into CONV file
(2)
doc-available not working as e...
(4)
ddtekjava write to file only e...
(5)
arrayindexoutofbounds with ddt...
(7)
XSD: Structure definition depe...
(2)
Fatal Error whitespace expecte...
(3)
Executing a pipeline sequence ...
(2)
Data Transfer
(1)
Specifying the SEF File Locati...
(4)
Multiply numbers...
(2)
Using Generated Java-Code...
(5)
Mapper does not show all nodes...
(5)
Xul tree search using XQuery X...
(1)
converting XML to CSV
(2)
datadirect licenses
(1)
generate a uuid
(2)
generate a uuid
Previous
[61-80]
[81-100]
[101-120]
Next
Stylus Studio FAQs
(159)
Stylus Studio Code Samples & Utilities
(364)
Stylus Studio Announcements
(113)
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>
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.