- From: Adam Flinton <adam.flinton@nhs.net>
- Date: Mon, 29 Sep 2008 14:15:48 +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 I've now swapped to using the std JAXP method e.g. public static DocumentBuilderFactory getDBF(boolean namespaceaware) { DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance(); fac.setValidating(false); fac.setNamespaceAware(namespaceaware); fac.setXIncludeAware(true); return fac; } Where the vital bit is: fac.setXIncludeAware(true); et voila le job est done. It is proving very useful in all sorts of other ways e.g. I have a std update trigger: <xforms:trigger style="display:block"> <xforms:label>Update and Refresh</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:send submission="xmlprocess" /> <xforms:action ev:event="xforms-submit-done" propagate="false"> <xforms:load resource="javascript:clickLinkByClass('Refresh','input')" /> </xforms:action> </xforms:action> </xforms:trigger> Which I have then put into a separate xml file in a folder called "displayFragments" & look like: <?xml version="1.0" encoding="UTF-8"?> <xforms:trigger style="display:block" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events"> <xforms:label>Update and Refresh</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:send submission="xmlprocess" /> <xforms:action ev:event="xforms-submit-done" propagate="false"> <xforms:load resource="javascript:clickLinkByClass('Refresh','input')" /> </xforms:action> </xforms:action> </xforms:trigger> & thus now wherever I want a trigger I simply put: <xi:include href="./displayFragments/StdTrigger.xml" /> Very neat..... & this in addition to being able to design forms at their "lowest level" & then simply compose. 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 ***********************************************************************
Received on Monday, 29 September 2008 13:16:31 UTC