473,472 Members | 2,241 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

hello, newb question about xslt

why can i use javascrtip to output the file below into html
and also able to use xslt to do the same thing ???

xml.xml
<root>
<node>This is a node </node>
<root>

************************
xml.js

var doc=new activeobject("ms.xmldom");
doc.load (xml.xml);
doc.writeln(doc.nodename);
doc.writeln(doc.firstchild);
************************

************************
xml.xsl
<xsl:stylesheet ..etc..>
<xsl:template match='root'>
<body><xsl:valueof select="child"/></body>
</xsl:template>
</xsl:stylesheet>
************************

Please tel me the differnce i just leanr the basic transform, pleaee...

Dec 5 '06 #1
1 1221


--

"Toxician" <fr*************@yahoo.com????
news:11**********************@n67g2000cwd.googlegr oups.com...
why can i use javascrtip to output the file below into html
and also able to use xslt to do the same thing ???

xml.xml
<root>
<node>This is a node </node>
<root>

************************
xml.js

var doc=new activeobject("ms.xmldom");
doc.load (xml.xml);
doc.writeln(doc.nodename);
doc.writeln(doc.firstchild);
************************

************************
xml.xsl
<xsl:stylesheet ..etc..>
<xsl:template match='root'>
<body><xsl:valueof select="child"/></body>
</xsl:template>
</xsl:stylesheet>
************************

Please tel me the differnce i just leanr the basic transform, pleaee...
They are 2 diffrent ways. though theie distination are same.

Using JavaScript, The Client must support JavaScript. Using XSLT, the Client
must support XSLT.

JavaScript is a programLanguage, It can do much more things. XSLT is live
for XML transforming.

XSLT is much easy to use than JavaScript to trnsform XML.
Dec 15 '06 #2

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

Similar topics

4
by: Hari | last post by:
Basically I would like to downlod the visual basic 6.0 compiler, but i already have the vb.net compiler. I had to pay for the VB.net IDE, just wondering if I can get the vb 6.0 IDE for free or not....
5
by: Alexandre | last post by:
Hi, Im a newb to dev and python... my first sefl assigned mission was to read a pickled file containing a list with DB like data and convert this to MySQL... So i wrote my first module which...
15
by: Simon Harvey | last post by:
Hi everyone, I am fairly new to learning about xsl and xml, but one thing I have noticed is that anyone offering a tutorial or lesson on it seems to think that its the most incredible invention...
3
by: Phil | last post by:
Hi everybody, I am a XSLT beginner and the following problem really makes me crazy ! I have a main "contacts.xml" document which contains references to several contact data XML files. My aim...
6
by: RC | last post by:
Hello World, I am try do call a JavaScript function from XSLT, but I got function not avaible error. See "????" below. Would someone out there tell me how? Thank Q! <xsl:stylesheet...
2
by: Benign Vanilla | last post by:
I created a web site in ASP that is heavily data driven. On the home page, http://iheartmypond.com/. The list of categories is gathered from the database. I grab the distinct top level categories,...
5
by: Guiding5 | last post by:
Hi group! Basic question about counting specific nodes in the range, here the example: XSL: <xsl:stylesheet version="1.0"> <xsl:template match="/">
2
by: HendrikLeder | last post by:
Hello everybody :-) Next year I`ll write my diploma in computer science for business (It`s a degree in Germany) and I`ve some questions about the topic. The diploma will handle about refactoring...
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
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,...
1
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.