Chaps,
What's the best function to use for merging two XML files (that share the same structure) together into one input:data before they're used within an XForm? Just looking at aggregate and it appears to "append" one to the other, which isn't quite what I want. One of the XML files will be virtually blank. thanks, -- Colin Seaman Senior Developer Tradocs Ltd, Tower Point, 44 North Road, Brighton, BN1 1YR email: [hidden email] skype: colin,seaman telephone: 0870-1417031 website: http://www.tradocs.net This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please contact Tradocs. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. This content of this email is without prejudice. -- 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 |
Colin,
if I have understood your question correctly, you have 2 options for (decleratively) merging XML documents: 1. XSLT (http://www.orbeon.com/ops/doc/processors-xslt) 2. XUpdate (http://www.orbeon.com/ops/doc/processors-xupdate#d30e69) It is my understanding that even though two XML documents have identical structure (validates against the same schema), it does not allow for any "shortcuts" (beyond possibly making it easier to create your XPath expression). Hope that helps. Henrik On 11/27/06, Colin Seaman <[hidden email]> wrote: > Chaps, > > What's the best function to use for merging two XML files (that share > the same structure) together into one input:data before they're used > within an XForm? > > Just looking at aggregate and it appears to "append" one to the other, > which isn't quite what I want. One of the XML files will be virtually > blank. > > thanks, > > -- > Colin Seaman > Senior Developer > > Tradocs Ltd, > Tower Point, > 44 North Road, > Brighton, > BN1 1YR > > email: [hidden email] > skype: colin,seaman > telephone: 0870-1417031 > website: http://www.tradocs.net > > This email and any files transmitted with it are confidential > and intended solely for the use of the individual or entity to > whom they are addressed. If you have received this email in > error please contact Tradocs. Please note that any views or > opinions presented in this email are solely those of the author > and do not necessarily represent those of the company. Finally, > the recipient should check this email and any attachments for > the presence of viruses. The company accepts no liability for > any damage caused by any virus transmitted by this email. > This content of this email is without prejudice. > > > > > > -- > 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 |
Administrator
|
Colin,
And in addition to the methods suggested by Henrik, you can also use aggregate() in XPL, in an href expression. Are those methods along the line of what you are looking for? Alex On 11/27/06, Henrik Pettersen <[hidden email]> wrote: > Colin, > > if I have understood your question correctly, you have 2 options for > (decleratively) merging XML documents: > 1. XSLT (http://www.orbeon.com/ops/doc/processors-xslt) > 2. XUpdate (http://www.orbeon.com/ops/doc/processors-xupdate#d30e69) > > It is my understanding that even though two XML documents have > identical structure (validates against the same schema), it does not > allow for any "shortcuts" (beyond possibly making it easier to create > your XPath expression). > > Hope that helps. > > Henrik > > On 11/27/06, Colin Seaman <[hidden email]> wrote: > > Chaps, > > > > What's the best function to use for merging two XML files (that share > > the same structure) together into one input:data before they're used > > within an XForm? > > > > Just looking at aggregate and it appears to "append" one to the other, > > which isn't quite what I want. One of the XML files will be virtually > > blank. > > > > thanks, > > > > -- > > Colin Seaman > > Senior Developer > > > > Tradocs Ltd, > > Tower Point, > > 44 North Road, > > Brighton, > > BN1 1YR > > > > email: [hidden email] > > skype: colin,seaman > > telephone: 0870-1417031 > > website: http://www.tradocs.net > > > > This email and any files transmitted with it are confidential > > and intended solely for the use of the individual or entity to > > whom they are addressed. If you have received this email in > > error please contact Tradocs. Please note that any views or > > opinions presented in this email are solely those of the author > > and do not necessarily represent those of the company. Finally, > > the recipient should check this email and any attachments for > > the presence of viruses. The company accepts no liability for > > any damage caused by any virus transmitted by this email. > > This content of this email is without prejudice. > > > > > > > > > > > > -- > > 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 |
cheers guys. Aggregate did seem to do what I needed after all.
Everything's cominn together nicely now :-)
Colin Seaman Senior Developer Tradocs Ltd, Tower Point, 44 North Road, Brighton, BN1 1YR email: [hidden email] skype: colin,seaman telephone: 0870-1417031 website: http://www.tradocs.net This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please contact Tradocs. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. This content of this email is without prejudice. Alessandro Vernet wrote: Colin, -- 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 |