[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Q: Using XML entities for href's

  • From: "Eve L. Maler" <elm@a...>
  • To: xml-dev@i...
  • Date: Mon, 02 Mar 1998 12:48:44 -0500

xml entities
It's legal to reference a parsed entity from an attribute value, and every
XML processor should be able to handle it.  To do this properly, the
reference would have to look like this:

<aTag xml-link="simple" href="&aRef;">content</aTag>

(Using an ENTITY-type attribute wouldn't automatically expand it in place,
and anyway, has to be used exclusively with unparsed entities -- those with
an NDATA notation.)

	Eve

At 11:30 AM 3/2/98 -0500, Steffen Rodig wrote:
>> At 03:53 PM 3/2/98 +0100, Steffen Rodig wrote:
>>>In my xml based application I want to write xml documents with some
>>>kind of indirect links, since I don't know the exact location of a
>>>link target at the time a document is created and stored into a
>>>repository. I got the idea to use the entity concept of xml for doing
>>>this,
>> [...]
>>><?XML VERSION="1.0"?>
>>><!DOCTYPE CP-Document PUBLIC "-//SDM SHORE//DTD CP-Document//EN" [
>>><!ENTITY aRef SYSTEM "http://aServer/aDocument#anElement">
>>>]>
>>>...
>>><aTag xml-link=simple href=aRef>content</aTag>
>>>...
>
>> We have an almost identical challenge, with the added qualifications that
>
>> a) all our pages are customized and generated on the fly, out of the
>> repository;
>> b) we need to generate HTML, so that pages can be viewed and navigated
>> with today's HTML browsers.
>
>Does this mean, that you create HTML out of data structures that are in
>no way related to [X|HT]ML?
>
>We want to stick with XML in the repository 'cause we believe that XML-
>enabled browsers will become available soon. At the moment we plan an
>on-the-fly conversion to HTML as well.
>
>XML is not our intermediate format, it's going to be our basic format
>for the documents in the repository with elements forming objects
>and links forming relations among them.
>
>> ...
>
>> I see no reason why your approach wouldn't work with XML browsers.
>
>Ok, but is it valid XML, i.e. will a XML processor find the URL from
>the symbolic identifier?

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.