RE: Suggestions/Questions

> -----Original Message-----
> From: C. M. Sperberg-McQueen [mailto:cmsmcq@acm.org]

> Supporting the first form would be as you describe, and 
> requires a check
> for empty content, which is often (always?) complicated.  (I.e. I 
> don't know how to do it in XSLT, and the way I have done it 
> in homebrew
> systems is invariably a fairly ugly hack.)

In XSLT it is no harder than the attribute check:
  loc[not(node())]
  loc[not(@href)]

> Supporting the second seems simpler:  print the content as is, and
> if href is unspecified, then use the content as its value.

I prefer this stylistically, as it is clearer what the displayed text should
be.  A stylesheet unaware of this feature would at least display the URI,
instead of an zero-length link.

Received on Tuesday, 11 July 2000 10:33:36 UTC