<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>We would like to request an enhancement to the way in which 'form based editing' aspect of the css-styliong works. </div><div><br></div><div>We are working on a merge conflict resolver using processing instructions so that validity can be checked during editing.</div><div><br></div><div>Here is an example fragment of DITA:</div><div><br></div><div><div> <p class="- topic/p ">allow intelligent resolution of conflicts in a</div><div> <?dxml-merge-start text group="d2e150" mergeType="modify" ?></div><div> <dxml-merge-marker:marker xmlns:dxml-merge-marker="<a href="http://www.deltaxml.com/ns/dxml-merge-marker">http://www.deltaxml.com/ns/dxml-merge-marker</a>" /></div><div> <?dxml-merge text group="d2e150" chosen="true" deltaV2="base"?></div><div> Content Managment</div><div> <?dxml-merge text group="d2e150" chosen="false" deltaV2="anna=ben=chris" <Content Management?></div><div> <?dxml-merge text group="d2e150" chosen="false" deltaV2="david" <Document Management?></div><div> <?dxml-merge-end text group="d2e150"?></div><div> System …</div><div> </p></div><div><br></div><div>We have implemented a way of choosing between the three alternative options in Java, see below.</div><div><br></div><div><img id="9829d7ad-5f83-47ee-a4f8-055c68e7f806" height="30" width="522" apple-width="yes" apple-height="yes" src="cid:B326EAF4-C673-4E50-A2B8-0B419D5C1B69"></div><div><br></div><div>When the user clicks on the conflict symbol the three alternatives are displayed.</div><div><br></div><div><img id="232f2c00-27ec-4c9b-a85a-51a94d95e435" height="82" width="614" apple-width="yes" apple-height="yes" src="cid:CF476E59-C93D-438C-BB60-46488C0F4DFA"></div><div><br></div><div><br></div><div>At the moment we believe that we need to use an element to enable the 'form based editing' control to be displayed. We have tried using elements like <ph />, which work in the above example, but do not work in all DITA contexts.</div><div><br></div><div>In a StylesFilter if we are processing an element then it is possible to attach a 'form based editor' using the following code.</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "> props.put(InplaceEditorCSSConstants.<span style="color: #0326cc">PROPERTY_EDIT</span>, <span style="color: #3933ff">"."</span>);</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "> props.put(InplaceEditorCSSConstants.<span style="color: #0326cc">PROPERTY_RENDERER_CLASS_NAME</span>, MergeAttributeChooserRenderer.<span style="color: #931a68">class</span>.getCanonicalName());</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "> props.put(InplaceEditorCSSConstants.<span style="color: #0326cc">PROPERTY_SWING_EDITOR_CLASS_NAME</span>, MergeAttributeChooserEditor.<span style="color: #931a68">class</span>.getCanonicalName());</div></div><div><br></div><div>This works for an element, but not a processing instruction.</div><div><br></div><div>The AuthorInplaceContext elements allows us to get at the element that the style was attached to, as follows:</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Monaco; "> AuthorNode authorNode= authorInplaceContext.getElem();</div></div><div><br></div><div>However, it would be nicer if we could get the nodes (specifically the processing instruction nodes). If this was possible, we would not need to introduce the dummy element in the above example, which introduces DITA validation errors. </div><div><br></div><div>Best Regards,</div><div>Anthony.</div><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">-- <br>-- -------------------------------------------------------------------------<br>Michael Anthony Smith, DeltaXML Ltd "Michael Anthony Smith, DeltaXML Ltd "Experts in Information Change""<br>T: +44 1684 869035 E: <a href="mailto:anthony.smith@deltaxml.com">anthony.smith@deltaxml.com</a> <a href="http://www.deltaxml.com/">http://www.deltaxml.com</a><br>Registered in England 02528681 Reg. Office: Monsell House, WR8 0QN, UK</div></div>
</div>
<br></div></body></html>