Hiding of elements inside the Author view

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@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

Hi Jan, You could try to add these extra CSS selectors in the CSS used to render the DITA content in the Author visual editing mode:
*[class~="topic/ph"][conkeyref]:not([conaction]) > *[class~="topic/ph"], *[class~="topic/ph"][conref]:not([conaction]) > *[class~="topic/ph"] { display : inherit; }
*[class~="topic/ph"][conref]:not([conaction]) > *, *[class~="topic/ph"][conkeyref]:not([conaction]) > * { display : none; }
Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 7/4/2014 11:22 AM, Jan Bevers wrote:
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:
<phconref="GUID-883F799A-D12E-4684-92AF-2365DC41EE19#GUID-883F799A-D12E-4684-92AF-2365DC41EE19/IMAGE_GRH_3T5_D4">
<imagecid="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:
<phconref="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" />
<imagecid="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@sdl.com
www.sdl.com <http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm_campaign=SDL%2BStandard%2BEmail%2BSignature>
*SDL PLC confidential, all rights reserved.* 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. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
This message has been scanned for malware by Websense. www.websense.com <http://www.websense.com/>
_______________________________________________ oXygen-sdk mailing list oXygen-sdk@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk

Hi Radu, I may not be the actual recipient of this message. Please check once again. I have raised support request for issue in license server. Regards, Ashutosh -----Original Message----- From: oxygen-sdk-bounces@oxygenxml.com [mailto:oxygen-sdk-bounces@oxygenxml.com] On Behalf Of Oxygen XML Editor Support (Radu Coravu) Sent: Friday, July 04, 2014 11:48 AM To: oxygen-sdk@oxygenxml.com Subject: Re: [oXygen-sdk] Hiding of elements inside the Author view Hi Jan, You could try to add these extra CSS selectors in the CSS used to render the DITA content in the Author visual editing mode:
*[class~="topic/ph"][conkeyref]:not([conaction]) > *[class~="topic/ph"], *[class~="topic/ph"][conref]:not([conaction]) > *[class~="topic/ph"] { display : inherit; }
*[class~="topic/ph"][conref]:not([conaction]) > *, *[class~="topic/ph"][conkeyref]:not([conaction]) > * { display : none; }
Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 7/4/2014 11:22 AM, Jan Bevers wrote:
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:
<phconref="GUID-883F799A-D12E-4684-92AF-2365DC41EE19#GUID-883F799A-D12 E-4684-92AF-2365DC41EE19/IMAGE_GRH_3T5_D4">
<imagecid="JaJfR"href="GUID.7A23068F.1C34.46A2.849F.91FF00B9D586"place ment="inline"> <alt>Description</alt> </image>Some text
</ph>
I noticed that oXygen created a "#reference" reference element in memory to show the resolved content:
<phconref="GUID-883F799A-D12E-4684-92AF-2365DC41EE19#GUID-883F799A-D12 E-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" />
<imagecid="JaJfR"href="GUID.7A23068F.1C34.46A2.849F.91FF00B9D586"place ment="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@sdl.com
www.sdl.com <http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm _campaign=SDL%2BStandard%2BEmail%2BSignature>
*SDL PLC confidential, all rights reserved.* 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. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
This message has been scanned for malware by Websense. www.websense.com <http://www.websense.com/>
_______________________________________________ oXygen-sdk mailing list oXygen-sdk@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
_______________________________________________ oXygen-sdk mailing list oXygen-sdk@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
participants (3)
-
Ashutosh Kumar X
-
Jan Bevers
-
Oxygen XML Editor Support (Radu Coravu)