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

Combining XML with XLink to produce HTML

Subject: Combining XML with XLink to produce HTML
From: Christos Tsoukalas <ctsoukalas@xxxxxxxxxx>
Date: Thu, 17 Jul 2003 10:14:13 -0400
xlink document
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:  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:  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

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
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.