How do I make an XLink active when displayed with stylesheet

Ok, so I have an xml file holding all my data and am trying to make it so that different elements/attributes within the structure are links, but XLink does not seem to be working for me. I have an xls stylesheet which displays the xml data, and I would like to be able to click on the elements that are displayed and be taken to the links. Below is the first section of code from my xml document:
<studies xmlns:xlink="http://www.w3.org/1999/xlink/">
<study id="mice" xlink:type="simple"
xlink:href="http://www.w3schools.com" xlink:actuate="onRequest" xlink:show="embed">
<animal id="mouse234">
<date id="20070615">
<file>treatment.xml</file>
</date>
</animal>
</study>
And here is my stylesheet:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
<xsl:template match="/">
<html>
<body bgcolor="#0099ff">
<font style="font-family:verdana;font-size:110%;color:#FFFFFF"><b>
<h2>Study Performed</h2>
<blockquote>
<xsl:for-each select="studies/study">
<p><xsl:value-of select="@id"/></p>
</xsl:for-each>
</blockquote>
</b></font>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
So when I load up the xml file using the stylesheet, it shows:
Study Performed
mice
etc...
And I want mice to be a link but when I mouseover it or try to click it, nothing happens (behaves like normal text). What am I doing wrong?

Ah. Well, first you decide what you want the HTML to include so you have a link. Probably an <a> element with href= whatever you had in your xlink:href attribute?
Then you write XSLT code that produces that output. Something like this:<a href="{xlink:href}">whatever text you want</a>for example. You'll have to declare the xlink namespace in your XSLT document for this to work.

Similar Messages

  • How do i make a tab active and make it stay that way always. If i put a website in my home page in order for the tabs to open automatically in that same homepage , this setting is not working, every time I open a tab , a white window appears .

    How do i make a tab active and make it stay that way always. If i put a website in my home page in order for the tabs to open automatically in that same homepage , this setting is not working, every time I open a tab , the window appears white .

    By default Firefox opens a blank page for a new Tab, there is no setting to change that action without installing an add-on.
    New Tab Homepage extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/777

  • When I am connected to my home wifi, it says I am connected but the 4G icon doesn't go away.  How can I make that go away when I am connected?

    When I am connected to my home wifi, it says I am connected but the 4G icon doesn't go away.  How can I make that go away when I am connected?

    When I'm at my home, and on my Wifi, my 4G icon on my LG G2 is still present. No big deal. If the bits can flow via WiFi, that's what they'll do.
    You might try (if you really MUST shut off the cellular radio):
    Settings, Network Connections and More networks. Select Mobile Networks and uncheck Mobile data and data roaming.
    Not sure if that will work - but give it a try.

  • How can I make it so that when Safari opens it takes me to the homepage?

    Say I am on youtube and I quit safari, when I reopen safari later, it goes to the page last open, in this case, youtube. How can I make it so that when Safari opens it always takes me to the homepage?

    Click on the red button (top left) to close the window before quitting.

  • In windows 7, how do I make firefox start automatically when I turn on the pc.?

    In windows 7, how do I make firefox start automatically when I turn on the pc

    That worked, thanks. When I turn on the pc, I almost always go to the internet before anything else, so this eliminates one step. It doesn't seem to save any time, however, but it is easy. If anyone else wants to try this, it looks like it's very easy to undo if you change your mind.

  • How would I make it so that when "deleting" an image I can make it so that the delete key does it or a button I put on the application?

    How would I make it so that when "deleting" an image I can make it so that the delete key does it or a button I put on the application?
    I want it so that I can use either a button on the designer window or the delete key. I know how to do the or part but the trouble I'm having is coding the button in.
    if (LastImageClicked != null && (e.Key == Key.Delete || Button))
    This is the code that I have in the format I'm looking for I just don't know how to do it. Thanks for your help!

    There are a number of things which are unclear about your question.
    I'll tell you one way to approach this though.
    Handle Window.PreviewKeyDown.
    <Window
    Window.PreviewKeyDown="Mainwindow_PreviewKeyDown"
    Code behind
    private void Mainwindow_PreviewKeyDown(object sender, KeyEventArgs e)
    if (e.Key == Key.Delete)
    File.Delete("p001.jpg");
    I don't know enough about what you mean by LastImageClicked  but you need some way of knowing which path you are going to delete.
    Then you might well have a problem if it's showing in an image control.
    You will need to copy the picture off disk into a new bitmapimage object.
    If you just do
    <Image Source="p001.jpg"
    Then that image will grab the file and you won't be able to delete it - you'll  get an error.
    In my experimental code p001.jpg is set as content copy always so it ends up next to the exe in the bin when the solution compiles.
    You would probably want a full path to a file there.
    Hope that helps.
    Recent Technet articles:
    Property List Editing;  
    Dynamic XAML

  • How do I make objects fade in when scrolling?

    How do I make objects fade in when scrolling? Thanks!

    Do you know of a way to make Edge animations play when scrolled into view on a Muse website?
    Apple does this well here: http://www.apple.com/ios/ios7/features/

  • I updated my iphone to ios 7.1.1 and after that my contact photo when i call or call others to me is a small cycle of that picture i choose ... How can i make a big picture when i call my contant and when others call me ?

    I updated my iphone to ios 7.1.1 and after that my contact photo when i call or call others to me is a small cycle of that picture i choose ... How can i make a big picture when i call my contant and when others call me ?

    It's not clear why Apple made this change; speculation (which is not really allowed in these forums) is that it was done to protect the privacy of the caller.

  • How do i make Adobe professional v 6 compatible with Windows 7?

    how do i make Adobe professional v 6 compatible with Windows 7?

    using compatibility mode when clicking on the installation file is your best option
    and, if you need further help, what program are you trying to install? there is no adobe professional.  you've omitted some words that specify the product.

  • How do I make a 20 X 30 print with layers of 16 X 20, 12 X 18, 11 X 14, 8 X 12, 8 X 10, 5 X 7 and 4 X 6 of the same image to display the different sizes available to someone?  Using Elements 13 with Windows 8.1

    How do I make a 20 X 30 print with layers of 16 X 20, 12 X 18, 11 X 14, 8 X 12, 8 X 10, 5 X 7 and 4 X 6 of the same image to display the different sizes available to someone?  Using Elements 13 with Windows 8.1
    A senior citizen needs some help.
    Thanks

    Saving each image as different size - is it an option for you?  I would save images with their name as: 20x30.png, 16x20.png etc etc.
    Or explain whether you want these in a webpage  in which case only one image is necessary and different sizes are displayed with good CSS code.  this is question for Dreamweaver forum if this is what you want.

  • How can I make photos on web page enlarge with mouse-over?

    How can I make photos on web page enlarge with mouse-over?

    There's a couple of recent topics which mention MagicZoom and JQZoom...
    https://discussions.apple.com/message/17438064#17438064
    https://discussions.apple.com/message/17440847#17440847
    A very simple method is shown here...
    https://discussions.apple.com/message/17440847#17440847

  • How can I make multi partitions in my computer with Windows 7??

    How can I make multi partitions in my MakBook with Windows 7??

    From what I read you can't. If you used Boot Camp to partition the Macintosh hard drive so you could install Win 7 on a boot camp partition you are locked into that one partition.
    If you try to RE-partition that BC partition Win 7 won't boot, and IIRC there is a possibility of OS X not booting (Not sure about that). I just went through this myself.
    That's one of the big reason I have gone back to Win PCs as my main systems.
    Mac's are OK but to restrictive in what you can do with the hardware, and the OS IMHO.

  • How can we make 1 window to be displayed on top of other window in smartfor

    Dear friends,
                       How can we make 1 window to be displayed on top of other window in smartforms as i m not getting content of a window which is placed above other window?

    Hi,
    There r two ways ways to display image.
    1)As background image
    2)using graphic node.
    To display image as background.
    click on page node.
    choose background picture options
    enter the path of the image.enter the resolution and output mode in the output attributes.
    enter the horizontal and vertical positions where the image to be displayed in the page.
    To display image using Graphic node.
    Add a graphic node into the window where u want the image to be displayed.
    In the General attribute enter the path and the resolution.
    Hope ur problem get solved.
    Regards,
    shiva

  • How can I make the data persistent when using plist ?

    I have a UITableView table1. And when I touch any cell in the table a new UIViewController appears and it have two UITextField's name and description. After entering the data in both the text fields I used the save button to save them. In save method I wrote the code for the data to be stored in plist.
    -(void)save:(id)sender
    indexOfDataArray = temp;
    NSString *string1 = [[NSString alloc]init];
    NSString *string2 = [[NSString alloc]init];
    string1 = nameField.text;
    string2 = descriptionField.text;
    NSDictionary *myDict = [[NSDictionary alloc] initWithObjectsAndKeys:string2, string1, nil];
    [myArray addObject:myDict];
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"VideoData.plist"];
    [myArray writeToFile:path atomically:YES];
    UIAlertView *alertMesage = [[UIAlertView alloc] initWithTitle: @"Save Alert" message:@"The data entered is saved" delegate:nil cancelButtonTitle:@"cancel" otherButtonTitles:nil] ;
    [alertMesage show];
    [alertMesage release];
    [myArray retain];
    But the problem is every time I restart my application the data in the plist is deleted. How can I retain the data in the plist name I specified ?

    I think yes, I am specifying only one file name to store in the path. I understood my where I am wrong.
    If I added data in plist for two items(item1 and item2). And again I need to add next two items(item3 and item4) . How can I make item3 and item 4 do not replace item1 and item2 ?
    Thank You.

  • How do i make my screen rotate when i turn it

    How do i make my ipad screen rotate when i turn it

    If the screen doesn't rotate on your iPhone, iPad, or iPod touch - Apple Support

Maybe you are looking for

  • BUG: navigateToUrl always opens new tab in browser, also when window parameter is specified

    I have a problem navigating to a Url in the default browser in an Adobe Air project. air.navigateToUrl(request, windowName) launches the browser and displays the page, but it displays a new tab for every request. Here is a very simple example that sh

  • Unable to Publish Captive 4 into Adobe Connect with Windows 7

    Hello, I am using Adobe Captive 4 and have previously been able to publish my Adobe Captivate videos into Adobe Connect.  However, I have now had my PC upgraded to Windows 7 and am now unable to do so. When I attempt to publish into Adobe Connect, I

  • Keeping captions in slideshow, and organizing collections by choice in PSA SE 3

    1. I lose my captions when I put the pics in PDA slideshow format...can I keep them as shown in my Collections? I use WIN XP on Dell Inspiron 8200. 2. I do not want my Collections organized alphabetically or by date, but as I set them up. Is there a

  • Itunes 11.0.1 (12) quits unexpectedly

    Hi there, I found a previous discussion regarding itunes quitting unexpectedly, but it said to wait for itunes 10.6.1 (I think).  I have itunes 11.0.1 and am having the same problem.  I am unable to use the command + 1 function to follow the instruct

  • Black and White and Title screens don't save

    Hi, i have a problem with Premiere Pro CS3. I am currently editing a color film and have applied the black and white effect to most of the scenes. At a certain point the program seems to have no capacity for that effect anymore. Half of the film stay