Hi Is there any built in processor that can be used to obtain/create a unique identifier or GUID? Thanks, Brian Bacsu -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hi Brian,
Yes, there is this static method that returns a String: org.orbeon.oxf.util.UUIDUtils.createPseudoUUID() Alex On 3/15/06, Brian Bacsu <[hidden email]> wrote: > > Hi > > Is there any built in processor that can be used to obtain/create a unique > identifier or GUID? > > Thanks, > > Brian Bacsu > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Alex,
how do you call this static method in a pipeline? thanks *p Alessandro Vernet wrote: Hi Brian, Yes, there is this static method that returns a String: org.orbeon.oxf.util.UUIDUtils.createPseudoUUID() Alex On 3/15/06, Brian Bacsu [hidden email] wrote:Hi Is there any built in processor that can be used to obtain/create a unique identifier or GUID? Thanks, Brian Bacsu -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws-- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Alessandro Vernet
Alex:
below is one way I found to call the createPseudoUUID() static function. Let me know if this is the right way to use this. What's the difference between the xslt and unsafe-xslt processor? many thanks Pascal <p:processor name="oxf:unsafe-xslt"> <p:input name="data"> <dummy/> </p:input> <p:input name="config"> <uniqueid xsl:version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:uuid="java:org.orbeon.oxf.util.UUIDUtils"> <xsl:value-of select="uuid:createPseudoUUID()"/> </uniqueid> </p:input> <p:output name="data" ref="data"/> </p:processor> Alessandro Vernet wrote: Hi Brian, Yes, there is this static method that returns a String: org.orbeon.oxf.util.UUIDUtils.createPseudoUUID() Alex On 3/15/06, Brian Bacsu [hidden email] wrote:Hi Is there any built in processor that can be used to obtain/create a unique identifier or GUID? Thanks, Brian Bacsu -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws-- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hi Pascal,
Using XSLT is a good way to do it. The difference between oxf:xslt and oxf:unsafe-xslt is that you won't be able to use Java functions in your XPath code when using oxf:unsafe-xslt. The particularly alarming name, "unsafe XSLT", is there to remind us that there is a potential security risk when using this processor, especially if the code you are running is somehow derived from something provided by the end-user of your application (where he can provide XPath expressions or entire XSLT stylesheets). Alex On 3/18/06, Pascal Heus <[hidden email]> wrote: > Alex: > below is one way I found to call the createPseudoUUID() static function. > Let me know if this is the right way to use this. > What's the difference between the xslt and unsafe-xslt processor? > many thanks > Pascal > > <p:processor name="oxf:unsafe-xslt"> > <p:input name="data"> > <dummy/> > </p:input> > <p:input name="config"> > <uniqueid xsl:version="2.0" > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:uuid="java:org.orbeon.oxf.util.UUIDUtils"> > <xsl:value-of > select="uuid:createPseudoUUID()"/> > </uniqueid> > </p:input> > <p:output name="data" ref="data"/> > </p:processor> > > > > Alessandro Vernet wrote: > Hi Brian, > > Yes, there is this static method that returns a String: > org.orbeon.oxf.util.UUIDUtils.createPseudoUUID() > > Alex > > On 3/15/06, Brian Bacsu <[hidden email]> wrote: > > > Hi > > Is there any built in processor that can be used to obtain/create a unique > identifier or GUID? > > Thanks, > > Brian Bacsu > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > > -- > Blog (XML, Web apps, Open Source): > http://www.orbeon.com/blog/ > > > > ________________________________ > > -- You receive this message as a subscriber of the [hidden email] > mailing list. To unsubscribe: > mailto:[hidden email] For general > help: mailto:[hidden email]?subject=help ObjectWeb > mailing lists service home page: http://www.objectweb.org/wws > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
In reply to this post by Pascal Heus
Hi,
We want to read emails from an inbox from orbeon, including attached binary documents. I seem to remember that Eric Van Der List posted about something similar and maybe even wrote an Email generator but I cant seem to find the details. Has this code been added to orbeon and where can I find details on how to use it? Thanks in advance, Dave -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Dave,
Eric may be able to respond directly, but as far as whether we have added the code to OPS, the answer is no. -Erik David Sinclair wrote: > Hi, > > We want to read emails from an inbox from orbeon, including attached > binary documents. I seem to remember that Eric Van Der List posted > about something similar and maybe even wrote an Email generator but I > cant seem to find the details. Has this code been added to orbeon and > where can I find details on how to use it? > > Thanks in advance, > > Dave Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |