Yes, there is also this in the main template ...
<xsl:for-each select="xxxFile/Record">
<xsl:call-template name="record"/>
</xsl:for-each>
Which means I am barking up the wrong tree.
There are differences between the XSL and the XML which is the reason why no records are being returned.
Your question nudged me in the right direction and...
User Profile
Collapse
-
Saxon Template Reference
Hi everyone,
I hope this is a simple (syntax) thing and that someone can point me in the right direction.
At the moment, I am successfully processing an XML file with Saxon (from the command line) and get the output that I expect.
However, the XSL file that I have 'inherited' contains multiple templates. e.g.
<xsl:template match="/">
XSL ... stuff
</xsl:template>... -
I agree: Google is the source. But I feel overwhealmed by the quantity of information and was hoping that someone could point me towards their 'pet tool'.
So far I really think that I can use XSLT to get the XML into CSV. That looks very good.
And I could programmaticall y convert the CSV into XML but I was wondering whether there is an easier way to convert CSV to XML? That would be a help.
But, yes, I am...Leave a comment:
-
XML to CSV ... and back
For a data-exchange scenario, I need to be able to tansform a rather complex XML structure into CSV ... and back again.
I could programme this but am hoping to find a tool that could cut down some of the 'leg-work'.
The authority which manages the exchange provides ample XSL and XSD files and structure-descriptions which we are hoping to use.
There seem to be a number of tools around (e.g. XML2CSV and... -
CSS with XSL & XML: Scrolling Table ... almost there!
Dear all,
I have been working to implement a scrolling table into an xml / xsl interface and so far have managed to put together an acceptable version using <thead> and <tbody> syntax. Indeed for the html examples that I found out there this seems to work perfectly.
On the surface it also works perfectly in my xml / xsl implementation too (also based on html underneath). Indeed, using IE6*, you can take... -
Scrolling table options?
Hi everyone,
I have some simple but very long reports that I would like to present in tabular format. To make this more comfortable for the reader I would like the headers to remain static at the top of the tables and just the content to scroll.
I got this working with 'DIV' commands but found that, as various users re-sized their browsers, the column headers would go out of line. I tried fixing this with column width... -
column width irritation ...
Hi everyone,
I have a table which, in order to line up with other information, needs to have very exact column widths.
So far I have implemented the following with normal HTML tables ...
<td align="RIGHT" width="77">
... which works OK most of the time.
However, sometimes the data contained in the table overshoots the column width and the table starts... -
I have incorporated the following along with my other Javascript functions ...
[CODE=javascript]function onopen()
{
window.resizeTo (500,300)
}[/CODE]
... but, although everything else seems to work fine, the window fails to resize.
I hope/believe that this is just a syntax issue and that someone can point me in the right direction to 'pick up' the 'OnOpen' (or equivalent) event....Leave a comment:
-
Excellent, yes, javascript has the syntax ...
[CODE=javascript]window.resizeTo (500,300)[/CODE]
... and my application already uses javascript which helps.
Now I would like to incorporate this in the simplest way possible and so have been googling with the keyword: 'onopen' in the hope that I can just put the command in at the start and the window will resize.
However, most of the examples...Leave a comment:
-
Browser window: Specifying the size and location?
Hi Everyone,
Does anyone know how I can dictate what size and location the browser window should have when opened?
I have a lot of fixed-width columns and so it would be great if I could do this so that the user then doesn't need to re-size the window to see the data.
Many thanks,
Alan Searle
PS: This is for IE6 sp1 but I'd be interested in the syntax for Firefox too. -
Mystery spaces ...
I am retrieving data from an XML file with XSLT and display that data in a table that, at the moment, has flexible width.
Now I would like to fix the columns with the following simple syntax ...
<tr>
<td width='30' ALIGN='RIGHT'> ...
The table is also declared in a very simple way ...
<table width="99%" border="1" ALIGN="LEFT">... -
I've been google on 'scrollable grid' and there seems to be a lot of discussion (noise) out there on this topic.
It seems that there are commercial solutions and a lot of ASP chat about this issue. However, I am working with XSLT & JavaScript and don't really want to get involved in testing 'add-ons' or writing lots of code.
If there is nothing that is more or less (HTML) standard, then I will probably stick with...Leave a comment:
-
Many thanks for the link showing how to freeze the headers ...
eg http://www.cssplay.co.uk/layouts/basics2.html
... and yes, this works fine (even incorported into an XSL file). I'm very pleased and many thanks for your help.
However, I am curious about one thing:
As it is, I will use the frozen head to hold my column headers and totals in place while the data is scrollable. This will...Leave a comment:
-
Yippppeeee ... I found out how to do it:
Here is a little example with decimal-format which I hope people find helpful.
Regards,
Alan Searle
Example ...
<xsl:decimal-format name="european" decimal-separator="," grouping-separator="." digit="D"/>
<xsl:template match="/">
<html>
<body>...Leave a comment:
-
To solve my problem with the decimal commas I have been investigating the command 'decimal format' ...
<xsl:decimal-format name="european" decimal-separator="," grouping-separator="."/>
My hope here is that I can switch to comma for the decimal and then both do mathematical operations on these values and display/export numeric values with commas.
I have integrated the...Leave a comment:
-
These tips look great. Many thanks: I will experiment with these techniques and am sure that one will fit my needs.
There is one other thing that I will need to sort out which is how to save the result to a separate (text) file or maybe open directly in Notepad.
Here I have been googling on key words but tend to come up with a lot of commercial products offering this functionality. That's very nice but really I would...Leave a comment:
-
Comma and point ...
Hi everyone,
I am on a project here in Germany and am having a tricky problem with decimal points which in Germany (and most other European countries) are represented by a comma instead.
My XSLT transforms seem to work only with a point which isn't such a problem: I just tell the users that the 'point is the comma'. However as soon as we start transferring data (e.g. into Excel), the 'decimal points' confuse Excel... -
Freezing Headers ... Possible?
Hi everyone,
I currently display XML data with XSLT which works fine (including some dynamic filtering with JavaScript).
However, often the data which is returned is quite lengthy and, as the user scrolls down to look at the data, the header disappears off the top of the viewable portion of the browser. This is quite irritating as the header contains summing and title information which should remain in view.
... -
Hi guys,
I've been following this thread as I also need to export to CSV (so that the user can import to Excel) but unfortunately I cannot use any server-side actions (e.g. PHP).
I am using XSLT along with JavaScript and so am hoping that someone can point me towards a HOWTO that shows me how I could (easily) export data (often already dynamically filtered in with JavaScript/XSLT) to file.
Any tips here...Leave a comment:
-
In the end it was my silly, silly error: I was testing the exit code of the process checking the exit code ... rather than checking the exit code. Arrggghh!
Anyway it should have been like this ...
Code:$ProcessObj->GetExitCode( $exitcode ); print "Process completed with exit code $exitcode\n";
Leave a comment:
No activity results to display
Show More
Leave a comment: