Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
| Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 28th, 2004, 10:16 PM
Authorized User
 
Join Date: Jan 2004
Location: , , United Kingdom.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Any xlink experts out there?

In short, I am trying to support thumbnails and image maps using xlink using

xmlns:xlink CDATA "http://www.w3.org/1999/xlink"
xlink:type (simple) "simple"
xlink:href CDATA #IMPLIED
xlink:role CDATA #IMPLIED
xlink:title CDATA #IMPLIED
xlink:show (new | replace | embed | other | none) #IMPLIED
xlink:actuate (onload | onrequest) #IMPLIED

Does anyone have a good example(s) of DTD and XML instance that demonstrate this implementation or can you point me to a good resource(s) for information?

If not xlink--how do you support thumbnails and image maps in your implementations?


  #2 (permalink)  
Old February 29th, 2004, 05:09 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

What technology do you expect to use? I don't know of any that support the whole standard out-of-the-box. The only one time I have seen this in action was in a XUL application with a lot of custom code behind the scenes to support it.

--

Joe
  #3 (permalink)  
Old February 29th, 2004, 05:23 AM
Authorized User
 
Join Date: Jan 2004
Location: , , United Kingdom.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In short, we want to transform the XML instance to XHTML. Now, we could go crazy and add a lot of addition elements/attributes, which in the case of image maps, I expect. However, we have the xlink attributes above which we are under-utilizing. In the case of thumbnail, we'd--in short--be looking to render it something like:

<a href="./image.jpg"><img src="./thumb/image.jpg" /></a>

  #4 (permalink)  
Old February 29th, 2004, 01:49 PM
Authorized User
 
Join Date: Jan 2004
Location: , , United Kingdom.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here are a couple of ideas


<Link xlink:href="./image.jpg" ... >
    <Image xlink:href="./thumb/image.jpg" ... />
</Link>





<MediaResource>
    <Image type="thumbres" xlink:href="./thumb/image.jpg" ... />
    <Image type="normalres" xlink:href="./image.jpg" ... />
</MediaResource>





<Image imageID="./thumb/image.jpg" xlink:href="./image.jpg" ... />

    <!--
        The disadvatage to this method is that the additional details
        such as title or alternate text (represented by "...") can
        only be about one image or the other -- not both.

        Additionally, xlink:href can sometime represent the inline
        image and other times imageID does.
    --->




Similar Threads
Thread Thread Starter Forum Replies Last Post
job for experts g_tufat Need help with your homework? 0 July 3rd, 2006 05:49 PM
Which browsers have support for extended Xlink? ballo XML 0 May 21st, 2006 07:23 AM
Any File (input #1) experts help? enterbase Access VBA 2 February 2nd, 2004 08:35 AM
Help, any javascript experts! tanmaylian Javascript 1 January 21st, 2004 04:59 AM
How do I.....? One for the Experts!? ziwez0 Access VBA 13 October 20th, 2003 05:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.