Subject: Re: [docbook-apps] how to link to a URL?
Thanks. That did the trick. By the way, I'm using xincludes. I did declare the xlink namespace already in the main index.xml, but I didn't do it for the included file. When I validated index.xml, it normally validates all xincludes; in this case, it would still show the same error unless I add the namespace declaration at the top of each Xinclude file. (i.e., <chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="basics">. I don't know if this is expected behavior. Once again, thanks. Robert On Tue, Dec 8, 2009 at 2:04 PM, Bob Stayton <firstname.lastname@example.org> wrote: > Hi, > That section failed to mention that if you add attributes in the xlink > namespace, then you need to add the xlink namespace declaration in your > document. That is most easily done on the root element, so that it applies > to the whole document: > > <book xmlns:xlink=http://www.w3.org/1999/xlink etc. > > I'll add that to the next edition of the book. > > Bob Stayton > Sagehill Enterprises > email@example.com > > > ----- Original Message ----- From: "Robert Nagle" > <firstname.lastname@example.org> > To: <email@example.com> > Sent: Tuesday, December 08, 2009 11:55 AM > Subject: [docbook-apps] how to link to a URL? > > >> I am trying to mention a URL in a paragraph for a Docbook 5 file. >> >> Following the example from the Docbook XSL book >> http://www.sagehill.net/docbookxsl/Db5Tools.html#Db5LinkExamples , I >> tried this: >> >> <para> For more information go to >> <link xlink:href="http://www.google.com"> </link></para> >> >> Also I tried this: >> <para> For more information go to >> <link xlink:href="http://www.google.com">google >> </link></para> >> >> >> In the latest version of Oxygen I get an error when it tries to validate: >> >> >> SystemID: C:\Documents and Settings\robert\My Documents\xml\myguide.xml >> Engine name: Jing >> Severity: fatal >> Description: The prefix "xlink" for attribute "xlink:href" associated >> with an element type "link" is not bound. >> Start location: 76:72 >> >> This happens even if >> >> Any idea what is going on? For my purposes I plan to output both in >> pdf and html. >> >> -- >> Robert Nagle >> >> htpt://www.robertnagle.info >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: firstname.lastname@example.org >> For additional commands, e-mail: email@example.com >> >> >> > > -- Robert Nagle 12777 Ashford Point Dr #1417 Houston, Texas 77082 713 893 3424 htpt://www.robertnagle.info