[xsl] Combining XML with XLink to produce HTML

Subject: [xsl] Combining XML with XLink to produce HTML
From: Christos Tsoukalas <ctsoukalas@xxxxxxxxxx>
Date: Thu, 17 Jul 2003 10:14:13 -0400
Hi,

My objective by combining "document1.xml" (the original XML document) 
and "document2.xml" (the XLink document) is to produce HTML code like:

-----------------------------------------------
<p align="justify">
   <a name="ct1-1">1</a>
	Please, see <a href="http://vendor1_anchor1";>link</a>
</p>
-----------------------------------------------	

where the 'href' attribute comes from the matching <plink> node of the XLink
document.
In some respect I need to add the <plink> nodes to the <ref> nodes and 
transform the output to HTML.

Thanks,

Christos
	
	
> Subject: RE: [xsl] Combining XML with XLink to produce HTML From: Américo
Albuquerque <melinor@xxxxxxx > <mailto:melinor@xxxxxxxxxxxxx>> Date: Wed, 16
Jul 2003 16:03:25 +0100 	
> Hi

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [<mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx>] On Behalf Of 
> Christos Tsoukalas
> Sent: Tuesday, July 15, 2003 3:21 PM
> To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
> Subject: [xsl] Combining XML with XLink to produce HTML
> 
> 
> Hi,
> 
> I currently try to develop XSLT to combine a regular XML document
> ("document1.xml") with an XLink document ("document2.xml") 
> containing external links to the first document. Eventually 
> the combined document 
> needs to be transform to HTML
> 
> The "document1.xml" file looks like:
> 
> ---------------------------------------
> <ref id="ct1-1">
> ...
> </ref>
> ---------------------------------------
> 
> while the "document2.xml" file looks like:
> 
> ---------------------------------------
> <links>
>  <plink xlink:title="Citation Link">
>   <anchor 
> xlink:href="document1.xml#xpointer(/descendant::ref[@ID=&apos;
> ct1-1&apos;])"
> xlink:label="ct1-1"/>
>   <resource type="vendor1" ID="vendor1_anchor1" xlink:label="ct1-1R"/>
>   <connect xlink:from="ct1-1" xlink:to="ct1-1R"/>
>  </plink>
> <links>
> ---------------------------------------
> 
> Notice that the two documents are not necessarily saved in 
> the same directory. I need to develop XSLT that will combine 
> these two documents and transform the combined result into 
> HTML (the actual formatting of the HTML is not 
> important at this point) so that the links are resolved. 
> 
> I would appreciate all help/ideas on how to combine these two 
> documents.

> But how do you want them to be combined??
> Add the <ref> nodes to the <plink> ones?

> You'll need to provied more info on that



>  XSL-List info and archive:  <http://www.mulberrytech.com/xsl/xsl-list>




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread