[oXygen-sdk] Hiding of elements inside the Author view

Jan Bevers jbevers at sdl.com
Fri Jul 4 03:22:39 CDT 2014


Hi

What I would like to do:
Inside my document I have an element which has a "conref" to an element in another document. When opening this document oXygen will resolve the content and show it in the editor.
When there is already content inside the source element oXygen will visually show both the resolved content and the content which is inside that tag in the source document.
My goal is to only show the resolved content and hide all the other content that is inside the element.

Source document:
<ph conref="GUID-883F799A-D12E-4684-92AF-2365DC41EE19#GUID-883F799A-D12E-4684-92AF-2365DC41EE19/IMAGE_GRH_3T5_D4">
<image cid="JaJfR" href="GUID.7A23068F.1C34.46A2.849F.91FF00B9D586" placement="inline">
                        <alt>Description</alt>
            </image>Some text
</ph>

I noticed that oXygen created a "#reference" reference element in memory to show the resolved content:
<ph conref="GUID-883F799A-D12E-4684-92AF-2365DC41EE19#GUID-883F799A-D12E-4684-92AF-2365DC41EE19/IMAGE_GRH_3T5_D4">
           <#reference href="ish:/ GUID-883F799A-D12E-4684-92AF-2365DC41EE19#GUID-883F799A-D12E-4684-92AF-2365DC41EE19/IMAGE_GRH_3T5_D4" />
           <image cid="JaJfR" href="GUID.7A23068F.1C34.46A2.849F.91FF00B9D586" placement="inline">
                        <alt>Description</alt>
            </image>Some text
</ph>

How can I manage to hide all the child elements except the "#reference" element (I marked the part I want to hide)?

Thanks in advance

Jan Bevers | Developer | SDL | +32 (0)15 400 970 | jbevers at sdl.com

</pre><font face="arial" size="2" color="#736F6E">

<a href="http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm_campaign=SDL%2BStandard%2BEmail%2BSignature">
<img src="http://www.sdl.com/Content/images/SDLlogo2014.png" border=0><br>www.sdl.com
</a><br><br>

<font face="arial" size="1" color="#736F6E">

<b>SDL PLC confidential, all rights reserved.</b>

If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, 
and we further request that you advise us.<BR>
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.<BR>
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
</font>


This message has been scanned for malware by Websense. www.websense.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-sdk/attachments/20140704/e45182be/attachment.html>


More information about the oXygen-sdk mailing list