Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XSL / XML: Syntax for calling

Thread Tools

XSL / XML: Syntax for calling

Alan Searle
Posts: n/a

I hope someone can help me with this simple question ...

I have a set of XML files which the users can open and view with the
formatting set by a single XSL file. This works great.

In the XSL file I have some processing using javascript. This also
works fine and, for example, the users can run some simple sorting using
the following call to javascript (also contained in the XSL):

<td class="top" onclick="sort('job_id');">Job</td>

Now I would like to pluck out some information from the XML and display
this in the header and, for this, I have written another little
javascript program called getheader(). I am trying to include this as a
simple display (i.e. without any clicking or activation) and am not sure
of the syntax.

For example, should it be ...

This ...


.... or this ...


.... or this ...


.... or something else completely?

Here I find that IE falls over on the call so I think that I need to be
sure that I am calling my code correctly before I can start debugging it.

I am a bit embarrassed asking this simple question: I have found lots of
great examples on the internet but find that that often don't explain
how the procedures are called ... and I am a bit of a newbie to
javascript and XML.

Anyway, I hope that someone can help me or can point me towards a good
'HOWTO' or tutorial somewhere?

Many thanks for your help.

Alan Searle
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL Question tp xsl:for-each and xsl:variable XML 1 05-27-2005 09:25 PM
tomcal/xsl - problems with xsl:include Klaus Friese Java 0 11-22-2004 10:17 AM
XSL-1000: (Fatal Error) Error while parsing XSL file (org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy) Kevin Flood Java 1 09-13-2004 02:28 PM
XSL-1000: (Fatal Error) Error while parsing XSL file (org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy) Kevin Flood Java 0 09-08-2004 02:11 PM
use xsl:element to output an "<xsl:template match=...> ? Ray Tayek XML 3 11-30-2003 10:14 AM