W3C home > Mailing lists > Public > spec-prod@w3.org > July to September 2012

RE: Is there a way in respec to hyperlink to external refs?

From: Travis Leithead <travis.leithead@microsoft.com>
Date: Tue, 28 Aug 2012 22:05:22 +0000
To: Eliot Graff <Eliot.Graff@microsoft.com>, "spec-prod@w3.org" <spec-prod@w3.org>
Message-ID: <9768D477C67135458BF978A45BCF9B3838436352@TK5EX14MBXW602.wingroup.windeploy.ntdev.microsoft.com>
Actually, I want to deep-link to specific definitions within HTML5/DOM4.

As if HTML5 defined:
<dfn title="cool-thing">The cool thing algorithm</dfn>

And from another spec I wanted to reference that:
According to <a title="cool-thing">the cool thing algorithm...</a>

But these links only work in-document. Anolis appears to support this:

<var data-anolis-spec=html title=concept-frag-parse-context>context</var>

From: Eliot Graff
Sent: Tuesday, August 28, 2012 3:00 PM
To: Travis Leithead; spec-prod@w3.org
Subject: RE: Is there a way in respec to hyperlink to external refs?

Hi Travis.

ReSpec enables you to create reference links.

[[!HTML5]] Creates a normative reference entry for the html5 spec.
[!HTML5] Creates an informative reference

The list of values is saved in http://dev.w3.org/2009/dap/ReSpec.js/bibref/biblio.js

Is this what you are looking for?

Eliot


From: Travis Leithead [mailto:travis.leithead@microsoft.com]<mailto:[mailto:travis.leithead@microsoft.com]>
Sent: Tuesday, August 28, 2012 2:54 PM
To: spec-prod@w3.org<mailto:spec-prod@w3.org>
Subject: Is there a way in respec to hyperlink to external refs?

Q: I'd like to include an auto-generated hyperlink to an external reference. I don't want to have to manually add the href attribute to each of these external references. Is there a way I can have a single definition that contains the hyperlink which is repeated to all occurances of that external reference?

E.g.,

The definition of Node from DOM4 is here: http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#node

I'd like to say succinctly that <a class="externalDFN">Node</a> but possibly add a syntax to replicate the long URL above into each of these external references.

Can this be done?
Received on Tuesday, 28 August 2012 22:05:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 28 August 2012 22:05:57 GMT