Top Banner
No More Broken Links Mark Baker Analecta Communications Inc.
23

No More Broken Links

Nov 01, 2014

Download

Technology

mbakeranalecta

My Presentation from Beyond the Bleeding Edge at STC13: No More Broken Links
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: No More Broken Links

No More Broken Links

Mark BakerAnalecta Communications Inc.

Page 2: No More Broken Links

Why do links break?

Somebody moved the cheese

A

B

D E

C

Taking Tech Comm to the Web 2

Page 3: No More Broken Links

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

Page 4: No More Broken Links

Hard Links A hard link identifies a resource to link to

Taking Tech Comm to the Web 4

Page 5: No More Broken Links

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

Page 6: No More Broken Links

Hard Linking

Topics contain direct links to other topics

A

B

D E

C

Taking Tech Comm to the Web 6

Page 7: No More Broken Links

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

Page 8: No More Broken Links

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

Page 9: No More Broken Links

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

Page 10: No More Broken Links

Soft linking

A soft link identifies the subject that is mentioned

Taking Tech Comm to the Web 10

Page 11: No More Broken Links

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

Page 12: No More Broken Links

How do links get made

Topics are indexed by subject

Taking Tech Comm to the Web 12

Page 13: No More Broken Links

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

Page 14: No More Broken Links

Links discovered via topic indexes

Taking Tech Comm to the Web 14

Page 15: No More Broken Links

Soft linking != redirection

No resource is identified in any way

Taking Tech Comm to the Web 15

Page 16: No More Broken Links

Connection is by subject only

No resource has to exist to name a subject

Taking Tech Comm to the Web 16

Page 17: No More Broken Links

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

Page 18: No More Broken Links

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

Page 19: No More Broken Links

Not topic, no link!

No broken link, because no link to break

A

D

C

F

Taking Tech Comm to the Web 19

Page 20: No More Broken Links

What if multiple topics found? More than one topic can cover the same subject

Taking Tech Comm to the Web 20

Page 21: No More Broken Links

Handling multiple link targets 1

Create a popup with multiple links

Topics on John Wayne• Filmography• Biography

Taking Tech Comm to the Web 21

Page 22: No More Broken Links

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

Page 23: No More Broken Links

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