I'm trying to put an hyperlink in a generated document using a custom script, because the link needs to be fetched by the script.
I'm generating the XML in the custom script like follows:
(...)
var thegeneratedURL = "https://www.google.com"
var thelinktext = "test"
var xmlCommitID = xmlDOM.createElement("CommitID-Hyperlink");
var commitIdLink = xmlDOM.createElement("a");
commitIdLink.setAttribute("href", thegeneratedURL);
var commitIdText = xmlDOM.createTextNode(thelinktext);
commitIdLink.appendChild(commitIdText);
xmlCommitID.appendChild(commitIdLink);
xmlRow.appendChild(xmlCommitID);
return xmlDOM.xml;
Then I'm calling the script in the respective fragment

...and inserting the custom field
However, when I generate the document the link text is fine but the URL is not:
Anybody knows what I'm missing?
Thank you!!


This is the code I use, to link directly to diagram url's on a html export of an EA-Model
This code is used in a script fragment like this:
It generates a link like the following:
with the name of the diagram being displayed.