Hi, I have the following code which accesses an XML document and then
displays the document using XSL.
-----------------------------------------------------------------------------------------------------------------------
Dim xmlDocument
Dim xslDocument
Dim path
Dim XSLTemplate
Dim proc
Dim nodes
set xmlDocument=Cre ateObject("MSXM L2.FreeThreaded DOMDocument")
xmlDocument.asy nc="false"
xmlDocument.loa d(Server.MapPat h("test.xml") )
path="/forum"
set nodes = xmlDocument.sel ectNodes(path)
If nodes.length = 0 Then
Response.Redire ct("noMatch.asp ")
Else
set xslDocument=Cre ateObject("MSXM L2.FreeThreaded DOMDocument")
xslDocument.asy nc="false"
xslDocument.loa d(Server.MapPat h("gigs.xsl") )
Set XSLTemplate =Server.CreateO bject("MSXML2.X SLTemplate")
Set XSLTemplate.sty lesheet = xslDocument
Set proc=XSLTemplat e.createProcess or()
proc.input = xmlDocument
proc.Transform
Response.Write proc.output
End If
------------------------------------------------------------------------------------------------------------------------------------
The code works fine when I am loading the XML document from the local
server, but when I change the code to:
xmlDocument.Loa d("http://myurl.com/db/test.xml")
I seem to have problems. The browser seems to get stuck loading and
never returns any value, not even an error message.
Is this the correct way to load an XML document from a URL? Is there
some sort of server setting which may be blocking my code from access
this XML document?
............... ..............
Another Question.
............... ..............
Once I have solved this problem, I have another problem. The XML
document is not formed in a familiar way that I am used to, so I am
unsure of how to display it via XSL. The XML document looks like this.
-------------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<clubnme>
<LONDON>
<venue>London KOKO</venue>
<address>1A Camden High Street, NW1</address>
<url>http://www.koko.uk.com </url>
<gig1>January 19th - The On/Offs</gig1>
<gig2>January 26th - The Envy Corps & Low Vs Diamond</gig2>
</LONDON>
<ABERDEEN>
<venue>Aberde en Moshulu</venue>
<address>Windmi ll Brae, Aberdeen, AB11 6HU</address>
<url</url>
<gig1>January 30th - Pop Levi</gig1>
<gig2>Februar y 6th - Ratatat & the Whip</gig2>
</ABERDEEN>
<BIRMINGHAM>
<venue>Birmingh am Custard Factory</venue>
<address>Gibb Square, Birmingham, B9 4AA</address>
<url</url>
<gig1>January 25th - The Violets</gig1>
<gig2>Februar y 1st - Ratatat</gig2>
</BIRMINGHAM>
</clubnme>
----------------------------------------------------------------------------------------------------------------
I want to be able to display each part as City, Venue, Address, URL,
and then the gigs. But because the City is not within a <citytag and
is just displayed as <LONDON>, how would I access this data in XSL ?
Sorry for the long questiong, but I really need help with this now.
Thanks 1 1410
"TheDude5B" <ti*******@gmai l.comwrote in message
news:11******** **************@ d71g2000cwa.goo glegroups.com.. .
Hi, I have the following code which accesses an XML document and then
displays the document using XSL.
--------------------------------------------------------------------------
---------------------------------------------
Dim xmlDocument
Dim xslDocument
Dim path
Dim XSLTemplate
Dim proc
Dim nodes
<snip>
You've asked this question also in the XML group where it has been answered
please don't multipost. If you are unsure which group to post to use a
cross post. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: James Walker |
last post by:
Can some one help I get an error of 'checkIndate' is null or not an object
can someone please help. I can't work out why
Thanks in advance
James
<form>
<td height="24" colspan="7" valign="top"><form name="booknow"><select
|
by: Jeremy Gollehon |
last post by:
I'm trying to help a friend out but couldn't find an answer so thought I'd
post here.
Is it possible to access the frame window at http://www.5460.net (a chinese
site)?
We're trying to get the DIV elements from its DOM.
We were trying:
alert(document.frames.document.getElementsByTagName('DIV').length);
with no luck.
Thanks for any help!
|
by: Ant |
last post by:
Hi,
I'm, having some problems with this function.
function displayElements()
{
for (i=0;i<document.forms.elements.length; ++i)
{
document.writeln(document.forms.elements.value);
}
|
by: Chris Styles |
last post by:
Dear All,
I've been using some code to verify form data quite happily, but i've
recently changed the way my form is structured, and I can't get it to work
now.
Originally :
The form is called "form1", and I have selects called "PORTA", "PORTB" ...
etc...
|
by: |
last post by:
The problem lies here eval("document.TeeForm.amt.value(S+M)");
S and M suppose to add up and the total suppose to appear on the AMT field
but it didn't. Any help?
============================ CODE
==============================================
| |
by: kosmodisk |
last post by:
Hi,
I'm having problem accessing javascript-created elements from opened
window. This occurs only when I'm including another files in opened
window, javascript or css. When I comment out "<link>" and "<script>"
(point (0)), the script works fine.
The opening window itself (point (1)) can access the object. When page
has been loaded, then I can access the object also (point (3)). The
script does find included files (debug_test2.css and...
|
by: gunimpi |
last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431
********************************************************
VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
wanted
********************************************************
For this teeny job, please refer to:
http://feeds.reddit.com/feed/8fu/?o=25
|
by: beebee |
last post by:
Hi all i am getting the following error message when my feedback form is posted:
"This page is accessing information that is not under its control. This poses a security risk. Doyou want to continue."
Let me first say, my feedback page and thank you pages are in the same domain.
my webservice.htc file is in the same diectory as my feedback.jsp page.
I am using IE 6 (my companiy is IE specific)
If i click OK, all code and everything...
|
by: Vinodsrvk |
last post by:
I am accessing a string from the previous page's hidden text. While I am reading the string the only last character of the string is getting truncated. When I tried viewing the string in the previous page itself I could see the complete string.
I have formed the string in the main page using java code as bellow
document.formRpt.ReportForHdn.value = document.formRpt.ReportForHdn.value...
|
by: souporpower |
last post by:
Hello All
I am trying to activate a link using Jquery. Here is my code;
<html>
<head>
<script type="text/javascript" src="../../resources/js/
jquery-1.2.6.js"</script>
<script language="javascript" type="text/javascript">
|
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...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
|
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,...
|
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...
|
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...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |