One thing I am grappling with as I try to open my (relational) mind to XML databases is how to link documents. Is this even considered a "good practice"? For example, a many organizations each with many users who might, in turn have the same document (across all orgs) associated with them. What if I want to deal with the orgs and their users in other contexts other than a single document or two that they have in common? Is there such a re-use of data with eXist? Or am I stuck thinking too much in RDBMS terms?
Is it considered a good practice to generate ids? Any examples? Articles? |
Administrator
|
On Tue, Jun 3, 2008 at 4:11 PM, bicyclesforeveryone
<[hidden email]> wrote: > > One thing I am grappling with as I try to open my (relational) mind to XML > databases is how to link documents. Is this even considered a "good > practice"? For example, a many organizations each with many users who might, > in turn have the same document (across all orgs) associated with them. What > if I want to deal with the orgs and their users in other contexts other than > a single document or two that they have in common? Is there such a re-use of > data with eXist? Or am I stuck thinking too much in RDBMS terms? > > Is it considered a good practice to generate ids? Any examples? Articles? digest(string(random(true)), 'MD5', 'hex'), but of course there are many other ways to generate an ID. You might also want to ask this question in eXist mailing list, as the people there might have some good advice for you. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Thanks Alessandro.
For others interested in this topic, this thread seems like a place to start: http://www.nabble.com/DB-Design%3A-collections-and-documents-vs-XML- Schema-td17569055.html#a17569055 On Jun 4, 2008, at 7:01 PM, Alessandro Vernet wrote: > On Tue, Jun 3, 2008 at 4:11 PM, bicyclesforeveryone > <[hidden email]> wrote: >> >> One thing I am grappling with as I try to open my (relational) >> mind to XML >> databases is how to link documents. Is this even considered a "good >> practice"? For example, a many organizations each with many users >> who might, >> in turn have the same document (across all orgs) associated with >> them. What >> if I want to deal with the orgs and their users in other contexts >> other than >> a single document or two that they have in common? Is there such a >> re-use of >> data with eXist? Or am I stuck thinking too much in RDBMS terms? >> >> Is it considered a good practice to generate ids? Any examples? >> Articles? > > You can generate an ID in XForms with the XPath expression: > digest(string(random(true)), 'MD5', 'hex'), but of course there are > many other ways to generate an ID. You might also want to ask this > question in eXist mailing list, as the people there might have some > good advice for you. > > Alex > -- > Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise > Orbeon's Blog: http://www.orbeon.com/blog/ > Personal Blog: http://avernet.blogspot.com/ > Twitter - http://twitter.com/avernet > > -- > 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 > OW2 mailing lists service home page: http://www.ow2.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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |