<div dir="ltr">Sorry, it looks like either Gmail or the list santized my ulink. If set the url= in the ulink to <span style="font-family:arial,sans-serif;font-size:13px">&amp;MYURL;/awesomefile.</span><span style="font-family:arial,sans-serif;font-size:13px">txt, is where it works.</span></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 6:14 PM, AdamD. <span dir="ltr"><<a href="mailto:adam820@gmail.com" target="_blank">adam820@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I've looked around the internet for examples of using expanded entities as ulink URLs, but in all the instances I've found they use the entire link, such as:<div><br></div><div><!ENTITIY myurl "<a href="http://www.thisismy.com/url" target="_blank">http://www.thisismy.com/url</a>"> or, the entire <ulink> tag structure as the entity.</div>

<div><br></div><div>What I'm looking to do is use an entity to represent just part of a URL, leading up to the final file. I'm trying to put links to files distributed via HTTP, and while the filenames should remain fairly constant the DNS name/HTTP link of the URL may change names, and not having to go update individual URLs all through a document would be a huge time-saver.</div>

<div><br></div><div>What seems to work when locally built (HTML, PDF, etc. on local machine) is putting the entity in the .ent file like <!ENTITY MYURL "<a href="http://docs.mysite.com/itfiles/tutorial" target="_blank">http://docs.mysite.com/itfiles/tutorial</a>"> and the ulink as:</div>

<div><br></div><div><ulink url="&amp;MYURL;/awesomefile.txt">file</ulink><br></div><div><br></div><div>This correctly generates the URL to the external site in the PDF, HTML, etc. However, when this is packaged as an RPM and deployed on the documentation site, it makes the final URL as displayed  "<a href="http://docs.mysite.com/awesomefile.txt" target="_blank">http://docs.mysite.com/awesomefile.txt</a>" instead of pointing to the correct external link (which happens to be on the same server, just a different URL).</div>

<div><br></div><div>I saw a post about using correct XML, and putting the entity as "&amp;MYURL&semi;", but this just makes the URL "<a href="http://docs.mysite.com/&MYURL/awesomefile.txt" target="_blank">http://docs.mysite.com/&MYURL/awesomefile.txt</a>" without expanding the entity, taking the literal text.</div>

<div><br></div><div>Is there a proper way to do this, if at all?</div><div><br></div><div>Thanks in advance.</div><span class="HOEnZb"><font color="#888888"><div><div><br></div>-- <br>Adam D.<br>
</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Adam D.<br>
</div>