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

Ashutosh Kumar X ashutosh.x.kumar at ericsson.com
Fri Jul 4 03:50:07 CDT 2014


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 at oxygenxml.com [mailto:oxygen-sdk-bounces at oxygenxml.com] On Behalf Of Oxygen XML Editor Support (Radu Coravu) 
Sent: Friday, July 04, 2014 11:48 AM
To: oxygen-sdk at 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 at 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 at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
>
_______________________________________________
oXygen-sdk mailing list
oXygen-sdk at oxygenxml.com
http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk



More information about the oXygen-sdk mailing list