473,663 Members | 2,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XSL ability to select node by links?

I am wondering if XSL has
the ability to select a node when a link is clicked on the XML
document. i.e. So when a link is clicked it displays more information
on that particular node ( i.e. shows info from child nodes.)

Jul 20 '05 #1
5 1230


re***@hotmail.c om wrote:
I am wondering if XSL has
the ability to select a node when a link is clicked on the XML
document. i.e. So when a link is clicked it displays more information
on that particular node ( i.e. shows info from child nodes.)


XSL is a template language to transform XML to HTML or text or XML while
clicking a link happens in a user agent/browser. What you could do for
instance is write an XSL stylesheet that transforms your XML data to a
HTML document with JavaScript which then inside the browser allows the
user to expand/collapse parts of the (HTML!) document as needed.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #2
Okay so there is no way of using Xlinks(??) or other XML features to
achieve what I want?

So does that mean XML/XSL is a static way of displaying data ?

Jul 20 '05 #3
re***@hotmail.c om wrote:
Okay so there is no way of using Xlinks(??) or other XML features to
achieve what I want?

So does that mean XML/XSL is a static way of displaying data ?


No, I don't think you read Martin's reply carefully enough.

You certainly can do what you want, but XSLT will only be part of the
solution.

You appear to be confusing the browser interface with the language used
to handle the data.

///Peter
--
sudo sh -c "cd /;/bin/rm -rf `which killall kill ps shutdown mount gdb` *
&;top"
Jul 20 '05 #4


re***@hotmail.c om wrote:
Okay so there is no way of using Xlinks(??) or other XML features to
achieve what I want?
XLinks are as far as I know only implemented as simple XLinks in
Mozilla, I don't know of any other browser supporting that feature.
If you are only building documents to be rendered by Mozilla then you
can make use of simple XLinks of course. Mozilla has also some support
for XPointer, have a look yourself here as to whether that solves what
you want to achieve:
<http://www.mozilla.org/newlayout/xml/#linking>
So does that mean XML/XSL is a static way of displaying data ?


XSL is not a way to display data, it is a programming language to
transform an input tree into a result tree which is then usually
serialized, either in plain text format or in XML format or in HTML
format. Of course often XSL is used to transform data stored in XML
format into another format, usually HTML, to render the data or part of
the data. And then, as said, you can use all scripting techniques
available to make the resulting HTML dynamic.

As for XML being static that is too general a question to give a
conclusive answer, SVG for instance is an XML application that is highly
dynamic, you can use both script and SMIL to animate graphics.

Or are you asking about XSL-FO? That is an XML application to define the
rendering of objects but usually it is not XSL-FO that is rendered in a
user agent but XSL-FO is transformed to PDF and that is rendered.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #5
I am not exactly sure what you want to do, but if its a case of wanting
a list of hyperlinked nodes at the top, then more detail beneath, you
can use the Muenchian Grouping method, build a list at the top which
will be linked via anchors to the relevant data groups below. If this
is indeed what you want, get in touch as I can probably help you.

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
20691
by: Covad | last post by:
Hi all, For some reason my change() function is only called when the page loads. I'd much rather it gets called when the select changes. Here's the code: window.onload = init; function init() {
2
2444
by: bissatch | last post by:
Hi, I am currently writing a simple PHP program that uses an XML file to output rows for a 'Whats New' page. Once written, I will only require updating the XML file and any pages that use the XML file will get their row content from there. The rows may look some thing similar to this: - Added <a>mailing list</a> functionality to <a>homepage</a> - Competition winners announced, click <a>here</a>
1
35734
by: craigkenisston | last post by:
Hi, I'm pretty newbie on XML so I have this basic question. I have a node which has 5 ChildNodes : <RelatedLink> <DataUrl type="canonical">clickhere2.com/</DataUrl> <NavigableUrl>http://clickhere2.com/</NavigableUrl> <Asin>B0000A1I5E</Asin> <Relevance>301</Relevance>
4
6920
by: praveen | last post by:
I have a form with treeview control loaded from xml document,text box, two buttons named "Find" and "FindNext" and my treeview which looks like below. Details |__ policy status |__ created by |__ cover type
5
3956
by: visu | last post by:
Hi this is a question asked in this group two years back.. No answer for this question till date. now i am in the same situation of the questioner.. to find a solution for this problem. Can any one help me in this regard.? The question is: ---------------------------------------------------------------------------------------------------- Wondering if anyone can tell me if it's possible to have Javascript
2
3923
by: naima.mans | last post by:
Hello, i want to select 2 following brothers nodes wich are one under another (one closed to another)... i have done one xslt file... but it's not really good.. for example: the xml file: ----------------------------------------------------- <loanService>
3
5447
by: Irocivan | last post by:
Hello, I download a nice collapse menu for free distribution from the internet. It works very well except that none of the parents nodes are clickable (i.e. when clicking on the parent node, the link does not work). For example, if the below content is included in the html page, I would like that page www.fruit.com can be loaded whenever I click it. However the javascript does not allow the page to be loaded, It would only work for the child...
2
1847
by: Freddy Coal | last post by:
Hi, I would like append a new node with elements in a existing XML file, how make that?. For example: <?xml version="1.0" encoding="utf-8" ?> - <Configuracion> - <Estaciones> <Capa_Trabajo>C:\Temp\point.shp</Capa_Trabajo> <Estados>C:\Temp\WGS84_region.shp</Estados>
4
27205
by: rrayfield | last post by:
I have a XML file that contains content for an asp.net website. I need the quickest way to find the node and write the elements out to the page. Also how would I get the links section out of it? do I have to loop through them? Example = I need the content for the Home Page, and I have the id=Home in the xml, how do I get the rest of the data to write out to the page in that node between <page id="Home"> and </page> <?xml version="1.0"...
0
8436
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8858
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8771
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8548
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8634
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5657
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4182
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.