473,657 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript transformation

I'm trying to convert a HTML table into Ventura Publisher markup.
Because tables can be a bit complicated I decided to do this
with a Javascript function like this:

<xsl:template match="table">
<xsl:if test="not(@clas s='header')">
<xsl:variable name='table' select="jssoft: venturaTable(.) " />
<xsl:value-of select='$table' ></xsl:value-of>
</xsl:if>
</xsl:template>

<xsl:template match="td">
<xsl:copy>
<xsl:apply-templates select="node()| @*"/>
</xsl:copy>
</xsl:template>

<xsl:template match="tr">
<xsl:copy>
<xsl:apply-templates select="node()| @*"/>
</xsl:copy>
</xsl:template>

The problem is that table format is correct, but contents are
not transformed. Is there a way to apply transformation to
<td>-elements before javascript-conversion?
--
JS
Nov 24 '06 #1
0 1165

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

Similar topics

2
2380
by: Jon Martin Solaas | last post by:
For java programmers there exist a framework called Millstone (www.millstone.org) for programming web user-interfaces in a component oriented way. Millstone uses xslt transformations to render components as html. I'm trying to modify millstone so that it can display a html editor widget called HTMLArea instead of the usual html <textarea> tag. But I need a little help with the xslt transformation. Especially there is a construct,...
1
2449
by: Ali Asghar | last post by:
Hi, Please I need help.I have a problem of client side XSL transformation. I sent the XML and the XSL to the client in XML data islands. Using the transform Node method the HTML is returned. There is however some script tag in the XSL file which references external ..js files they are like <SCRIPT language="Javascript" src="abc.js" DEFER="true" /> Now, after transformation the function from this .js file are not
6
4683
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 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" /> <xsl:template match="/">
2
6171
by: Alan Searle | last post by:
I would like to use an XSL/HTML template to sort XML data dynamically on the client side. As it is, I found a tutorial showing how to do this on the following site ... http://www.bayes.co.uk/xml/portal.aspx?page=/xml/tutorial/index.xml&subpage=/xml/tutorial/filtering/filter.xml I experimented with the examples and found that they would run fine on a local PC (without installing a web-server). That is just what I need!
4
1761
by: scoomey | last post by:
Hi folks, I've got what I think is an interesting problem that I'm having trouble finding a solution for. I have an XML document that I render to the browser via an XSLT transformation to XHTML. I want the output to include links to a JavaScript routine that I will write to modify the original XML, but it seems that once the XML is rendered to XHTML it is no longer in scope of the DOM; only the XHTML output is. IS there any way to get...
7
12044
by: macabstract | last post by:
does anyone know of a "reasonably practical" yacc-type parser for JavaScript? in the absence of one, i will endevour to write my own starting from the BNF specification: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf any help/pointers gratefully received...
2
2421
by: pantagruel | last post by:
Hi, I'm trying to write to a file. The file is getting created. The file is even getting written to because the file ends up being one kb. so I guess there is something coming in. The code that is driving me crazy right now is: xslDoc2.load("C:/projects/tests/schematron/suchen/validationreport.xsl");
3
1520
by: elsheh | last post by:
Hi. Everyone I’m using xslt styllesheet to transform my xml doc. into an html doc. The task includes embedding some JavaScript code for validation purpose, till this point there is no problem everything is going right. Once I tried to get an xhtml doc instead of html, JavaScript problem was raised. In other words, the transformation is performed right apart from JavaScript problem which is, some of JavaScript special characters such as (< , >,...
22
2892
by: Dan Rumney | last post by:
Hi all, I've been writing Javascript for quite a while now and have, of late, been writing quite a lot of AJAX and AJAX-related code. In the main, my dynamically generated pages are created using Perl on the backend, with Javascript providing limited frontend functionality. As an example, an expanding tree would be fully populated on the server-side and then presented to the browser, with Javascript and CSS being used to vary the...
0
8402
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
8315
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,...
0
8734
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...
0
7341
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6172
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
4323
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2733
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1627
bsmnconsultancy
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...

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.