OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: Including a variable in an xlink:href value

I probably should clarify that the <?eval ${project.version}?> notation is specific to the Maven docbkx plugin, which we use to generate the output.

I also tried to create an entity file containing a version entity using the info from http://www.sagehill.net/docbookxsl/Db5Entities.html. When I tried to add the DOCTYPE element to refer back to the entity file, Oxygen rejected it as not being well-formed. So I couldn't test whether I could use an entity reference to incorporate the version number in the link target.

On Thu, Jan 4, 2018 at 11:14 AM, Janice Manwiller <janice@sqrrl.com> wrote:
In my docs, I currently use <?eval ${project.version}?> to indicate to insert the current product version number into the text.

I'm adding a link to a URL that includes the version number in the file name, but if I try to include the version number variable in the link, like:

xlink:href="" href="https://mycompany.com/directory/file-name-" target="_blank">https://mycompany.com/directory/file-name-<?eval ${project.version}?>.tar.gz"

I get an error that the link cannot include the < character.

Is there any way to include the variable in the link, so that the version number portion of the URL is populated automatically? Right now I'm stuck having the link be to the enclosing directory, with the file name referred to separately:

<filename>file-name-<?eval ${project.version}?>.tar.gz</filename> in <link xlink:href="">https://mycompany.com/directory/">https://mycompany.com/directory/</link>



Janice Manwiller
Principal Technical Writer
Sqrrl Data, Inc.
www.sqrrl.com | @SqrrlData

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]