OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XLink resource confusion (long)



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