- From: Adam Flinton <adam.flinton@nhs.net>
- Date: Mon, 29 Sep 2008 09:41:04 +0100
- To: joernturner <joernturner@me.com>
- CC: "www-forms@w3.org" <www-forms@w3.org>
joernturner wrote: > Hi Adam, > can you please give a bit more information about this stylesheet (url)? > > We have a similar solution but custom-made (sorry for late reply - > being sick today). Probably you're interested in our simplified syntax > as it makes assembly easier - let me know. > > Sent from my iPhone > OK... A) As soon as I've finished the bit I am working on (which includes the XInclude) I will be updating my code on the Open Health Tools/XMLProcess svn See: https://xmlprocess.projects.openhealthtools.org/ B) http://dret.net/projects/xipr/ C) I have made a few tweaks to it but they are minor (error handling, remove whitespace etc). D) I don't mind wrt the "how" but I have to have the capability as XForms designs end up very "copy & paste" very quickly w/o it as xml is inherently tree based & thus you will have to display the same information at a variety of levels (including in repeats which themselves possibly contain repeats etc). E) For efficiency I have a system which builds the XForm skeleton once & then stores the dom in a cache. When requested it fills the models etc. As such the XInclude only needs to be run on the "if not in cache load from file" part. Adam > On 26.09.2008, at 16:44, Adam Flinton <adam.flinton@nhs.net> wrote: > >> >> Adam Flinton wrote: >>> >>> Dear All, >>> >>> We have some fairly complex XML documents (often deeply nested) >>> >>> We often have the need to show a given element in it's own form, in >>> a superform (often as a repeat) & then in a super-superform (where >>> the super form is itself a repeat). >>> >>> At the moment this involves a lot of cut & paste etc where instead >>> we were wondering if there wads any sort of templating/subform >>> technology/standard out there which would allow us to define forms >>> at their lowest level and then compose superforms from those forms. >>> >>> e.g. the other day a simple attribute was added to an element which >>> meant changing the form for that element (it is quite a >>> complex/multi-attribute element) . >>> >>> This meant that there was copy and paste going on to......five other >>> forms (super, super-super, super-super-super which used/showed that >>> element. >>> >>> We can do this ourselves as our engine assembles the XForms and >>> fills in values etc prior to sending it to chiba for rendering into >>> HTML however I do do want to go out on a limb and recreate something >>> where there is an existing or standard way of doing this. >>> >>> e.g. I can put in resolvable hrefs which our XForms composer can >>> then use to pull in all the fragments and to ensure that all >>> (Xforms) refs are locally rooted. >> >> I have solved this using XInclude and the xipr stylesheet. >> >> Adam >> >> *********************************************************************** >> This message may contain confidential and privileged information. >> If you are not the intended recipient you should not disclose, copy >> or distribute information in this e-mail or take any action in reliance >> on its contents. To do so is strictly prohibited and may be unlawful. >> Please inform the sender that this message has gone astray before >> deleting it. Thank you. >> >> 2008 marks the 60th anniversary of the NHS. It's an opportunity to pay >> tribute to the NHS staff and volunteers who help shape the service, and >> celebrate their achievements. >> >> If you work for the NHS and would like an NHSmail email account, go >> to: www.connectingforhealth.nhs.uk/nhsmail >> *********************************************************************** >> >> *********************************************************************** This message may contain confidential and privileged information. If you are not the intended recipient you should not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents. To do so is strictly prohibited and may be unlawful. Please inform the sender that this message has gone astray before deleting it. Thank you. 2008 marks the 60th anniversary of the NHS. It's an opportunity to pay tribute to the NHS staff and volunteers who help shape the service, and celebrate their achievements. If you work for the NHS and would like an NHSmail email account, go to: www.connectingforhealth.nhs.uk/nhsmail ***********************************************************************
Received on Monday, 29 September 2008 08:41:50 UTC