[Home] [By Thread] [By Date] [Recent Entries]

  • From: Julian Reschke <julian.reschke@g...>
  • To: xml-dev@l...
  • Date: Thu, 04 Oct 2001 23:44:50 +0200

Say we have a protocol that reports a list of URIs in the following format:

	<container>
		<href>mailto:julian.reschke@g...</href>
		<href>tel:+49 1234 56788</href>
		<href>tel:+49 1234 56789</href>
		<href>http://www.greenbytes.de</href>
	</container>

The set of href elements is unbounded and can carry multiple types of URIs.

Obviously, given that this information exists, it would be nice to pass
additional information, like:

	<container>
		<href type="email">mailto:julian.reschke@g...</href>
		<href type="voice">tel:+49 1234 56788</href>
		<href type="fax">tel:+49 1234 56789</href>
		<href type="homepage">http://www.greenbytes.de</href>
	</container>

Obviously, it's easy to invent your own format, but I'm looking for a more
standardized way.

XLink comes to mind (namely the xlink:role attribute), but after a quick
search I couldn't find a standardized set of role names for my example.

BTW: it seems that XLink *requires* the links to sit in the xlink:href
attribute, so that the format would need to change to:

	<container>
		<href xlink:href="mailto:julian.reschke@f..."/>
		<href xlink:href="tel:+49 1234 56788"/>
		<href xlink:href="tel:+49 1234 56789"/>
		<href xlink:href="http://www.greenbytes.de"/>
	</container>

(or did I miss something?)


Feedback appreciated.



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member