|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am creating an interactive windows desktop by way of XML & XSLT, I intend to be able to put links to my favorite applications and directories (as well as weblinks) on this page. However the brower either just complains that the file can't be found or wants to download it. This is what I have thus far...
XSL file: Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Interactive Desktop Toolbar</title> <link rel="stylesheet" type="text/css" href="en_main.css" /> </head> <body> <div id="pod_A" class="pod_A"> <h4>System Utilities</h4> <hr /> <h6> <ul> <xsl:for-each select="links/utils/link"> <li> <a> <xsl:attribute name="href"> <xsl:value-of select="@src" /> </xsl:attribute> <img noborder="noborder"> <xsl:attribute name="src"> <xsl:value-of select="@icon" /> </xsl:attribute> </img> <xsl:value-of select="@name" /> </a> </li> </xsl:for-each> </ul> </h6> </div> <div id="pod_B" class="pod_B"> <h4>Applications</h4> <hr /> <h6> <ul> <xsl:for-each select="links/apps/link"> <li> <a> <xsl:attribute name="href"> <xsl:value-of select="@src" /> </xsl:attribute> <img noborder="noborder"> <xsl:attribute name="src"> <xsl:value-of select="@icon" /> </xsl:attribute> </img> <xsl:value-of select="@name" /> </a> </li> </xsl:for-each> </ul> </h6> </div> <div id="pod_C" class="pod_C"> <h4>Web Links</h4> <hr /> <h6> <ul> <xsl:for-each select="links/web/link"> <li> <a> <xsl:attribute name="href"> <xsl:value-of select="@src" /> </xsl:attribute> <img noborder="noborder"> <xsl:attribute name="src"> <xsl:value-of select="@icon" /> </xsl:attribute> </img> <xsl:value-of select="@name" /> </a> </li> </xsl:for-each> </ul> </h6> </div> <div id="pod_D" class="pod_D"> <h4>Miscellaneous</h4> <hr /> <h6> <ul> <xsl:for-each select="links/misc/link"> <li> <a> <xsl:attribute name="href"> <xsl:value-of select="@src" /> </xsl:attribute> <img noborder="noborder"> <xsl:attribute name="src"> <xsl:value-of select="@icon" /> </xsl:attribute> </img> <xsl:value-of select="@name" /> </a> </li> </xsl:for-each> </ul> </h6> </div> </body> </html> </xsl:template> </xsl:stylesheet> XML file: Code:
<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="main.xsl"?> <links> <utils> <link src="C:\WINDOWS\System32\cleanmgr.exe /sagerun:50" name="Disk Cleaner" icon="CleanMgr.gif" /> <link src="C:\Program Files\Raxco\PerfectDisk\PerfectDisk.exe" name="Perfect Disk 6.0" icon="PerfectDisk.gif" /> <link src="C:\WINDOWS\system32\PowerCalc.exe" name="Power Calculator" icon="PowerCalc.gif" /> </utils> <apps> <link src="" name="" icon="" /> </apps> <web> <link src="" name="" icon="" /> </web> <misc> <link src="" name="" icon="" /> </misc> </links> Everything technically works, but how can I specify to just launch the program? |
|
#2
|
|||
|
|||
|
You're going to love me for this
![]() I've been working on the same for the past few months.. I'm currently working on building a site where many techniques required to build an active desktop are explained. At the beginning, I was just using an HTML file, but I wanted to learn XML, and thought that converting my active desktop would be a great exercise. I made a small tutorial, which you can find here: http://users.skynet.be/bk342658/index.htm Note that this tutorial is from at least 3 months ago, and that my whole project has evolved a lot, as well as my XML & XSL coding. The new site should be online soon, but in the meantime, you should learn a lot from this one. Enjoy ![]() |
|
#3
|
|||
|
|||
|
*bows* That's nice. Thanks. You rock!
|
|
#4
|
|||
|
|||
|
I'm glad you like it
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Launching local apps via XSL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|