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

RE: Suggestions/Questions

From: Jonathan Marsh <jmarsh@microsoft.com>
Date: Tue, 11 Jul 2000 07:30:41 -0700
Message-ID: <116DFD732FA92E4D9B647C8EEF6DAF1001094BCE@red-pt-02.redmond.corp.microsoft.com>
To: "'C. M. Sperberg-McQueen'" <cmsmcq@acm.org>, "Eve L. Maler" <Eve.Maler@east.sun.com>
Cc: "'spec-prod@w3.org'" <spec-prod@w3.org>
> -----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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:42:15 UTC