No More Broken Links Mark Baker Analecta Communications Inc.
Nov 01, 2014
No More Broken Links
Mark BakerAnalecta Communications Inc.
Why do links break?
Somebody moved the cheese
A
B
D E
C
Taking Tech Comm to the Web 2
Links in HTML
<p>Hawkes‘ final film is a lighthearted Western in the Rio Bravo mold, with <a href="http://www.johnwayne.com/">the Duke</a> as an ex-Union colonel out to settle some old scores.</p>
Taking Tech Comm to the Web 3
Hard Links A hard link identifies a resource to link to
Taking Tech Comm to the Web 4
Hard links are hard work
Author discovers a resource to link to
Author creates link to chosen resource
Author manages and updates link over time
Taking Tech Comm to the Web 5
Hard Linking
Topics contain direct links to other topics
A
B
D E
C
Taking Tech Comm to the Web 6
The problem with hard linking If a topic is reused in more than one
location, what do you do about the links?
A
B
D E
C
First use
A
D
C
Second use
F?
Taking Tech Comm to the Web 7
Remove all the links?
Lonely topics
A
B
D E
C
A
D
C
First use Second use
F
Taking Tech Comm to the Web 8
Externalize the links Move the links to a map file New map file required for each use
Heavy creation and maintenance burden Will tend to limit amount of linking that is practical
First use Second use
Map file for first use
A B
A C
A D
A E
Map file for second use
A C
A D
A F
Taking Tech Comm to the Web 9
Soft linking
A soft link identifies the subject that is mentioned
Taking Tech Comm to the Web 10
Soft links in XML
<p><director name="Howard Hawkes">Hawkes'</director> final film is a lighthearted Western in the <movie>Rio Bravo</movie> mold, with <actor name="John Wayne">the Duke</actor> as an ex-Union colonel out to settle some old scores.</p>
Taking Tech Comm to the Web 11
How do links get made
Topics are indexed by subject
Taking Tech Comm to the Web 12
Topic indexing in XML<topic name="john-wayne-bio"> <index> <reference type="actor"> <key>John Wayne</key> </reference> <reference type="producer"> <key>John Wayne</key> </reference> </index> … </topic>
Taking Tech Comm to the Web 13
Links discovered via topic indexes
Taking Tech Comm to the Web 14
Soft linking != redirection
No resource is identified in any way
Taking Tech Comm to the Web 15
Connection is by subject only
No resource has to exist to name a subject
Taking Tech Comm to the Web 16
Soft linking and reuse Links are created by querying the available
topics in each place a topic is used
A
B
D E
C
First use Second use
A
D
C
F
Taking Tech Comm to the Web 17
What if no topic found?
Sometime there will be no topic in the current set for a reference
A
D
C
F
Taking Tech Comm to the Web 18
Not topic, no link!
No broken link, because no link to break
A
D
C
F
Taking Tech Comm to the Web 19
What if multiple topics found? More than one topic can cover the same subject
Taking Tech Comm to the Web 20
Handling multiple link targets 1
Create a popup with multiple links
Topics on John Wayne• Filmography• Biography
Taking Tech Comm to the Web 21
Handling multiple link targets 2 Gather all the links
at the end of the topic
More on John Wayne
• Filmography
• Biography
Taking Tech Comm to the Web 22
Questions?
Contact information Mark Baker Analecta Communications Inc. [email protected] Twitter: @mbakeranalecta Company: http://analecta.com Blog: http://everypageispageone.com Book: http://xmlpress.net/publications/eppo/
Taking Tech Comm to the Web 23