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

Re: XLink resource confusion (long)

  • From: "Christopher R. Maden" <crism@m...>
  • To: xml-dev@l...
  • Date: Sat, 05 May 2001 23:01:48 -0700

acentos xml
At 15:51 5-05-2001, jackson wrote:
>However, by the reasoning you have given above (which i
>believe reflects the spec), this is not possible. There is no
>"equivalent extended link".

Well, you demonstrate several extended links which are not equivalent, but 
there is an equivalent link.

>Consider this example:
>
>Example 1.a:  Simple link
>--------------------------
>
><section id="sec1"
>               xlink:type="simple"
>               xlink:href="http://www.someplace.org/something.html">
>   <title>Que se yo?</title>
>   <par>
>       No hay nada de interes en este parafo.
>   </par>
>   <list>
>      <item>Nada</item>
>      <item>Aun menos</item>
>   </list>
>   <!-- Lots more 'par', 'list', 'table', 'figure' elements etc. -->
>   <par>
>       Esto es aburrido. Y ademas, faltan los acentos.
>   </par>
></section>
>
>This is a simple link. It has:
>- One remote resource. The location of the remote resource is
>given by the xlink:href attribute.
>- One local resource. The 'section' element and all its contents.

<section id="sec1"
               xlink:type="extended">
   <loc xlink:type="locator" xlink:role="http://www.example.com/xlns/from"
           xlink:href="#sec1"/>
   <loc xlink:type="locator" xlink:role="http://www.example.com/xlns/to"
           xlink:href="http://www.someplace.org/something.html"/>
   <arc xlink:type="arc" xlink:from="http://www.example.com/xlns/from"
           xlink:to="http://www.example.com/xlns/to" />
   <title>Que se yo?</title>
   <par>
       No hay nada de interes en este parafo.
   </par>
   <list>
      <item>Nada</item>
      <item>Aun menos</item>
   </list>
   <!-- Lots more 'par', 'list', 'table', 'figure' elements etc. -->
   <par>
       Esto es aburrido. Y ademas, faltan los acentos.
   </par>
</section>

This does not have local resources, and includes two loc elements and one 
arc element within the beginning resource that weren't there in the other 
example, but is otherwise equivalent.

-Chris
-- 
Christopher R. Maden, XML Consultant
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4  5DFC AC52 F825 AFEC 58DA


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-2007 All Rights Reserved.