I'm new to Perl, just trying to create an xml file from a csv file:
{
my($fi) = $ARGV[0];
my($fo) = $ARGV[1];
my(@fields);
my(@fieldHeaders);
my($row);
my($i_count)=1;
my($ii_count)=0;
my($string);
sub trim($)
{
$string = shift;
$string =~ s/^\s+//;
$string =~ s/\s+$//;
$string =~...
The problem is that the parser is expecting the full path with forward slashes not backslashes:
descriptionLocation=\\server\shareddrive\ExtraData.xml
should be
descriptionLocation=//server/shareddrive/ExtraData.xml
Thanks for your help anyway.
Regards
Simon
If I place the ExtraData.xml file in the root of the output xml location then the transform works correctly.
I just dont understand what changes I need to make for the parser to understand that I wish to pick up the file from a different location.
Any ideas ?
My bad - just missed some information:
In Transform.xsl the param is passed like this:
<xsl:param name="descriptionLocation"/>
<xsl:variable name="descriptionFile" select="document($descriptionLocation,/)"/>
Try and bear in mind that different environments use differing parsers.
You can change the parser used by xmlspy using tools / options / xsl and configuring from there
Not exactly on subject but I wasn't sure where it would fit.
But here goes:
I am trying to tranform an xml file using xslt using the saxon parser, the saxon parser is called through a java line run through dos on windows server.
The problem lies when the xslt has a document('Output.xml')...
I have a value - over 1,000,000 or less than 0.000001 and I want to output it (via xslt 2.0) as it's decimal value rather than the exponential that is being displayed.
Any ideas if there is a way to do this, is there a simple way to achieve this eg:
<xsl:value-of...
Thanks - I'll have a look at that over the weekend.
It might be heading away from what I'm trying to do though, if simply because I'm trying to parse the xml using xslt rather than parse the xml file as a text string..
If I wanted to simply extract the data I needed it would be easier, as you...
Curiousity mainly, I was wondering if I could use some kind of xml stream reader / parser / writer to parse the file partitionally (new word?) rather than load the file into memory first then parse.
At the moment I can easily test the saxon and xalan parsers using java and wanted to know if the...
We are using Informatica as the ETL tool, but mainly as a scheduler for the processing.
Our technical architecture revolves around transforming xml files using xslt files and these transforms are driven from batch files.
For me to introduce a new technology would be tricky, unless I could...
Thanks for your non reply.
1. I could run some tests and see, but seeing as I offer advise on this site, feel entitled to glean some information back.
2. Interesting you dont include research and planning in your development cycle.
3. I currently use java and the xalan parser, I was wondering...
Has any looked at the performance improvement on using .net's xmlreader to parse xml files using xslt against command line parsing.
Is there any performance improvement on parsing larger zml files - 100-200 meg ?
Thanks in advance.
Simon
You will need to use server side code to manage this, unless you use something like Ajax and a webservice - even then you will need someway to process that recieved data - either way it will depend on the server you use and what technologies you feel most comfortable with.
If using a ms based...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.