473,395 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1217


re***@hotmail.com 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.com 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.com 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
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...
2
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...
1
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>...
4
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...
5
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...
2
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:...
3
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...
2
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>...
4
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? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...

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.