XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Andy JohnsonSubject: XML output's a URL in Browser Problem
Author: Andy Johnson
Date: 05 Mar 2012 07:46 AM
Hi,

Fairly new to XML, so i thought i would take a look at Stylus studio. I am having a problem creating clickable results. So for example my output would be a priceboard and then for the user to click the data on the priceboard and they are then redirected to a bespoke page for that output as such.

<?xml version="1.0" encoding="utf-8"?>
<PriceBoard>
<column>
<Deal Name="locationa" Price="0.01">
</Deal>
<Deal Name="locationb" Price="0.02">
</Deal>
</column>
</PriceBoard>

Outputs as:

Locationa 0.01
locationb 0.02

I need both the location and price to be a URL and upon clicking it redirects to another webpage.

Could anybody give me some assistance please?

Posttop
Ivan PedruzziSubject: XML output's a URL in Browser Problem
Author: Ivan Pedruzzi
Date: 07 Mar 2012 02:39 PM

Hi Andy,

Converting XML to HTML is a very common task and you can find a large literature on the web.

For the scope of this post, we can simply show you a tiny XSLT transformation that takes your sample XML and generates a HTML page with two hyper-links for each deal; we hope it will be a source of inspiration

Ivan Pedruzzi
Stylus Studio Team


Documentandy.johnsoncabfind.com.zip

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.