[oXygen-user] <Variables> in DITA documentation
Radu Coravu
support at oxygenxml.com
Wed Apr 25 03:37:34 CDT 2018
Hi Franz-Josef,
So:
> oXygen changes the 1^st angle bracket of “<project folder>” to
> “<project folder>” to save the structure.
If inside text content you leave a "<", the entire XML becomes not
wellformed. So this is why Oxygen escapes it to <
>
> In Author mode, you don’t realize this, only when trying to
> Search&Replace <installation folder> with <program folder> you don’t
> find all occurences and wonder why.
>
Yes, for Find/Replace in Files you would need to search using "<".
But any XML-aware processor (like XSLT) will "see" that "<" as the
"<" character.
>
> I see that this has to be changed by oXygen.
>
This cannot be helped, Oxygen needs to keep your XML document wellformed.
>
> Is there some advice / best practice to deal with this kind of source
> text? At the moment, I can only think of putting this “variable” in a
> <varname> element inside <filepath> without writing the angle brackets
> and defining a CSS rule for /filepath/varname to surround it with
> brackets in the output.
>
This could indeed work or you could stick to what you are currently
doing and let Oxygen escape the "<" as it currently does.
Regards,
Radu
Radu Coravu
Oxygen XML Editor
On 4/25/18 7:00 PM, Franz-Josef Knelangen wrote:
>
> Hi there,
>
> In our documentation we use something like <installation folder> or
> <project folder> and put these into file paths, f. e.
>
> <project folder>\pipe\sewer.s3db
>
> If I surround this with <filepath> markup, oXygen changes the 1^st
> angle bracket of “<project folder>” to “<project folder>” to save
> the structure.
>
> In Author mode, you don’t realize this, only when trying to
> Search&Replace <installation folder> with <program folder> you don’t
> find all occurences and wonder why.
>
> I see that this has to be changed by oXygen.
>
> Is there some advice / best practice to deal with this kind of source
> text? At the moment, I can only think of putting this “variable” in a
> <varname> element inside <filepath> without writing the angle brackets
> and defining a CSS rule for /filepath/varname to surround it with
> brackets in the output.
>
> Any other ideas?
>
> TIA and Greetings from Germany,
>
> Franz-Josef
>
>
> ------------------------------------------------------------------------
>
> *AKG Software Consulting GmbH
> Franz-Josef Knelangen*
>
>
> Uhlandstraße 12
> 79423 Heitersheim
> Germany
>
> Tel.: +49 (0)7634 5612-611
> Fax: +49 (0)7634 5612-300
> E-Mail: _fjk at akgsoftware.de_
> Internet: www.akgsoftware.de <http://www.akgsoftware.de>
>
> Geschäftsführer: Dipl.-Ing. Artur K. Günther, Dipl.-Ing. Arno
> Brüggemann, Dipl.-Ing. (FH) Bernhard Feser, Dipl.-Ing. Jens Günther
> Sitz der Gesellschaft: Heitersheim, HRB 310383 (Amtsgericht Freiburg)
>
>
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20180425/e4a68376/attachment.html>
More information about the oXygen-user
mailing list