<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Nathan,<br>
<br>
I forgot to mention that I've also added an issue that the editor
variables should be resolved inside oxy_url CSS function (built-in
and custom alike).<br>
<pre class="moz-signature" cols="72">Best regards,
Alex
--
Alex Jitianu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a> </pre>
On 13-May-14 3:32 AM, Nathan wrote:<br>
</div>
<blockquote
cite="mid:CAAA7NDgQ6hVd_y_8wgn4XNP2Q2kSRUGD9WE9aML4bNU_bRCP5Q@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Alex,
<div> Here is the use case scenario I am targeting:</div>
<div><br>
</div>
<div>In the CSS, I have </div>
<div><span class=""><br>
</span></div>
<div><font face="courier new, monospace"><span class="">*</span><span
class="">[</span><span class="">class</span><span class="">~=</span><span
class="">"topic/image"</span><span class="">][</span><span
class="">href</span><span class="">]{</span></font></div>
<div><font face="courier new, monospace"><span class=""> </span>content:oxy_url('${frameworkDir}',
'../../../../../', 'app/main/core/sfdc/htdocs/img/',
attr(href));</font></div>
<div><font face="courier new, monospace">}</font></div>
<div><br>
</div>
<div>Here, the built-in variable "frameworkDir" works fine. The
above path is valid when the file is in the "main" branch.</div>
<div>When the input xml file is in another branch (say
"/patch/21"), I would like to change the "app/main/core...."
to "app/patch/21/core...".</div>
<div>My first idea was to have a custom variable defined (say
$BRANCH) which would be set to "/main" by default and could be
reset to "/patch/21" by the user when they change the branch. </div>
<div><br>
</div>
<div>However, while the built-in variable was accepted, the
custom variable is not accepted here. Also, with respect to
creating pseudo classes, it would be a maintenance issue since
I would need to put in every release number (since
theoretically XML files from any release could be opened) in
the CSS and also the CSS would need to be updated after every
release.</div>
<div><br>
</div>
<div>Could you provide some alternatives?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Nathan</div>
<div><br>
</div>
<div> </div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
oXygen-sdk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-sdk@oxygenxml.com">oXygen-sdk@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk">http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk</a>
</pre>
</blockquote>
<br>
</body>
</html>