XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 27th, 2004, 10:59 AM
gt500shlby gt500shlby is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: West Point, PA
Posts: 18 gt500shlby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Arrow Launching local apps via XSL

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?

Reply With Quote
  #2  
Old July 28th, 2004, 02:39 AM
kid23 kid23 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 62 kid23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
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

Reply With Quote
  #3  
Old July 28th, 2004, 07:29 AM
gt500shlby gt500shlby is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: West Point, PA
Posts: 18 gt500shlby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
*bows* That's nice. Thanks. You rock!

Reply With Quote
  #4  
Old July 28th, 2004, 04:04 PM
kid23 kid23 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 62 kid23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
I'm glad you like it

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Launching local apps via XSL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT