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
steven campbellSubject: hyperlink in xml
Author: steven campbell
Date: 14 Feb 2006 11:48 AM
I am an XML newbie, and am trying to do the following:

<?xml version="1.0"?>
<Bill_Validator>

<WMS_Mechanical link="http:\\www.wmsgamingME.com">
<Specifications link="http:\\www.wmsgamingspecs.com"/>
</WMS_Mechanical>

</Bill_Validator>

I will have 100's of documents for my final machine breakdown. Is this possible in XML? What version of your software is required, and any extra add-ons needed.

Thanks...

Steven
Sr. Systems Engineer
WMS Gaming, Inc.

Postnext
(Deleted User) Subject: hyperlink in xml
Author: (Deleted User)
Date: 14 Feb 2006 12:44 PM
Hi, Steven. You can certainly write hyperlinks in XML as you show in your sample -- it's well-formed XML -- but I'm not sure what your objective is.

Can you tell us more about what you're trying to accomplish?

David Foster
Stylus Studio Team

Postnext
steven campbellSubject: hyperlink in xml
Author: steven campbell
Date: 14 Feb 2006 12:53 PM
I am building a tree for a gaming machine, and like how XML allows the collapse/expand. When it expands I want the user to be able to press a subject and have a link go to the company intranet and get the correct document/spreadsheet. When I write the XML, the hyperlink does not work, it just shows up as text on the screen. How do I make it active?

<?xml version="1.0"?>
<Bill_Validator>

<WMS_Mechanical link="http:\\www.wmsgamingME.com">
<Specifications link="http:\\www.wmsgamingspecs.com"/>
</WMS_Mechanical>

</Bill_Validator>


Thanks...

Steven
Sr. Systems Engineer
WMS Gaming, Inc.


Postnext
(Deleted User) Subject: hyperlink in xml
Author: (Deleted User)
Date: 14 Feb 2006 01:20 PM
Hi, Steven. It sounds like you want to use the Stylus Studio product as the GUI front end to allow your users to access mechanicals and specification documents. If that's the case, you might want to create a simple XSLT Stylesheet using the WYSIWYG Editor.

1. Use the XML document (I've assumed it's similar to the snippet you provided) as the XSLT WYSIWYG source.

2. Drag the link nodes from the tree display onto the WYSIWYG canvas.

3. Change the text value (from "link" to whatever you require; I chose "Mechanicals" and "Specifications").

4. Format as required. (I chose a simple bulleted list.)

When you preview the XSLT, the Preview window displays the hyperlinks you created by dragging and dropping. The XSLT code created by Stylus Studio looks like this:

<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>

<xsl:template match="/">
<html><head></head>
<body>
<ul>
<li value="0">
<a href="/Bill_Validator/WMS_Mechanical/@link">Mechanicals</a>
</li>
<li value="0">
<a href="/Bill_Validator/WMS_Mechanical/Specifications/@link">Specifications</a>
</li>
</ul>
</body>
</html>
</xsl:template>

</xsl:stylesheet>

You can learn more about the WYSIWYG Editor here:

http://www.stylusstudio.com/learn_xslt.html

Hope this helps.

David Foster
Stylus Studio Team

Posttop
steven campbellSubject: hyperlink in xml
Author: steven campbell
Date: 14 Feb 2006 01:25 PM
Thanks, will give it a try.

 
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.