RE: Not stop build on xslt faillure

2005-02-17 Thread Robert Soesemann
I am using the new xslt2 engine Saxon8. -Original Message- From: James Fuller [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 17. Februar 2005 11:44 To: Ant Users List Subject: Re: Not stop build on xslt faillure Robert Soesemann wrote: >Acttually I was looking for a way inside

RE: Not stop build on xslt faillure

2005-02-17 Thread Robert Soesemann
xslt faillure Antcontrib´s would be my first try for that ... Jan > -Ursprüngliche Nachricht- > Von: Robert Soesemann [mailto:[EMAIL PROTECTED] Gesendet am: > Donnerstag, 17. Februar 2005 10:58 > An: Ant Users List > Betreff: Not stop build on xslt faillure > >

Not stop build on xslt faillure

2005-02-17 Thread Robert Soesemann
Hello, Inside my build.xml I use the XSLT task to process hundreds of xsl files. Whenever the xslt fails for one file the whole pipeline stops. Can I tell this task or Ant to just go on preprocessing the next file and skip the error-prone one? Thanks in advance, R. -

Replace extension with mapper

2005-02-03 Thread Robert Soesemann
While copy HTML files (*.htm or *.html) to another folder, I want to rename the extension of all those files to *.xhtml. I tried this, but it didn't work. Can you help? include name="**/*.html"/> Best regards, Robert -

XSLT Task with external Saxon8

2005-01-13 Thread Robert Soesemann
Is there a way to tell Ant's xslt task to uses Saxon8 as processor WITHOUT copying the saxon8.jar to the Ant lib directory. I need this to be as plattform independant as possible. Therefore I would prefer putting the jar into an external application folder. It does not work when I just add saxon to

recursion in xmltask

2004-12-22 Thread Robert Soesemann
What am I doing wrong here? I want to iterate over the structure of an input xml and for a POC just ouput its structure with xmltask. This might look complicated but I need to do it inside Ant. The main target calls for each top-level ...

Conditional flow on error

2004-12-22 Thread Robert Soesemann
In my Ant pipeline I do XSD validation of XML document. When a document is not valid a log of type WARN is written. Is there an easy way to count log messages and call tasks depending if there was any error. What I want is to only call somne targets when there was NO validation error. Can you hel

XML to Java

2004-12-22 Thread Robert Soesemann
Hallo, In my CMS migration project I have a Ant pipeline which gets HTML files as input and perform mainly XSL preprocessing and validation on them. The last step of the pipeline is responsible for bringing the values of the XML structure into a CMS via a Java API. On requirement is to write as f

RE: Use Saxon8 in xslt task

2004-12-08 Thread Robert Soesemann
PROTECTED] Sent: Mittwoch, 8. Dezember 2004 17:21 To: Ant Users List Subject: Re: Use Saxon8 in xslt task Quoting Robert Soesemann <[EMAIL PROTECTED]>: > Thanks, > > Could anybody give me an example how to use this user_home/.ant/lib > solution. Would I really need to re

Re: Use Saxon8 in xslt task

2004-12-08 Thread Robert Soesemann
Thanks, Could anybody give me an example how to use this user_home/.ant/lib solution. Would I really need to remove the xslt task front ant/lib or could I just include the external saxon jar to the classpath? Regards, Robert Quoting Robert Soesemann <[EMAIL PROTECTED]>: > I ha

Use Saxon8 in xslt task

2004-12-07 Thread Robert Soesemann
I have my Ant pipeline running inside Eclipse. For some xslt tasks I need to use the optional Saxon 8 XSLT 2.0 processor. I add the path inside the xslt tasks via classpath and processor parameter: E.g.: And it just works. But when i run the Ant build outside of Eclipse with another An

FW: Saxon param to supress output

2004-12-06 Thread Robert Soesemann
I am a XSLT2 feature from Saxon8 inside an Ant script. Ourput files will be specified insede the xsl with xsl:result-document. But the Ant xslt task forces me to provide @destdir and copies the input files there. Even if they are empty they get copied unnessecarily. Can I pass a parameter to Sax

FW: Split XML file into seperate files with XSLT and ANT

2004-12-06 Thread Robert Soesemann
t. See the web page for more details. Brian Ant invocations follow. [1 = ${1}] [2 = ${2}] [3 = ${3}] Robert Soesemann wrote: >Sounds perfect. Thanks for this hint.

RE: Split XML file into seperate files with XSLT and ANT

2004-12-03 Thread Robert Soesemann
seperate files with XSLT and ANT You can use xmltask with the instruction. See http://www.oopsconsultancy.com/software/xmltask Robert Soesemann wrote: >Hello, > >I don't know if there is a standard way to do this, but maybe you have >an idea. > >I have many XML files

FW: Split XML file into seperate files with XSLT and ANT

2004-12-03 Thread Robert Soesemann
Hello, I don't know if there is a standard way to do this, but maybe you have an idea. I have many XML files which hold multiple XML fragments of a specific type .. For an easy import of those seperate contentitems into a CMS it would be better to split those fragments up into different file (one

Split XML file into seperate files with XSLT and ANT

2004-12-03 Thread Robert Soesemann
Hello, I don't know if there is a standard way to do this, but maybe you have an idea. I have many XML files which hold multiple XML fragments of a specific type .. For an easy import of those seperate contentitems into a CMS it would be better to split those fragments up into different file

RE: Delete XML Files depending on content

2004-12-03 Thread Robert Soesemann
Cool, that's easy. Thanks, Robert -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 2. Dezember 2004 18:35 To: Ant Users List Subject: Re: Delete XML Files depending on content Peter Robert Soesemann wrote: >Hello,

Delete XML Files depending on content

2004-12-02 Thread Robert Soesemann
Hello, I am looking for a clean and fast way to delete XML files depending on their content. To give you an idea of what I am doing: During a time consuming migration process I need to scan a folder structure for relevant files that need to be xsltransformed and validated and so on... Files tha

RE: Release log file lock from

2004-12-02 Thread Robert Soesemann
Dec 2004, Robert Soesemann <[EMAIL PROTECTED]> wrote: > Would it be enough to just exchange the ant.jar? I am using eclipse > with ant support. Depends on what else you are using. The nightly builds come from CVS HEAD. I think there haven't been any major changes in Ant's

RE: Release log file lock from

2004-12-02 Thread Robert Soesemann
? Thanks, Robert -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 2. Dezember 2004 09:27 To: [EMAIL PROTECTED] Subject: Re: Release log file lock from On Wed, 1 Dec 2004, Robert Soesemann <[EMAIL PROTECTED]> wrote: > In my build script I use

RE: Release log file lock from

2004-12-02 Thread Robert Soesemann
posts in the list if the file is opened by another program on Windows (say Windows Explorer), due to windows file locks, ant cannot delete it (I never test that anyway). --- Robert Soesemann <[EMAIL PROTECTED]> wrote: > Here is a snippet of my code. Maybe its because I am > not only

RE: Release log file lock from

2004-12-02 Thread Robert Soesemann
Would it be enough to just exchange the ant.jar? I am using eclipse with ant support. -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 2. Dezember 2004 09:27 To: [EMAIL PROTECTED] Subject: Re: Release log file lock from On Wed, 1 Dec 2004, Robert

RE: Release log file lock from

2004-12-02 Thread Robert Soesemann
I never thought that this could be the reason. Do you know a way to release that lock after I stopped the recorder? Robert -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 2. Dezember 2004 09:26 To: [EMAIL PROTECTED] Subject: Re: Release log file lock f

RE: Release log file lock from

2004-12-02 Thread Robert Soesemann
Users List Subject: Re: Release log file lock from The follwoinf script works in my environment (Fedora Core 2 Linux): Ivan --- Robert Soesemann <[EMAIL PROTECTED]> wrote: > Hello, > > In my build script I use the task to echo > errors to a

Release log file lock from

2004-12-01 Thread Robert Soesemann
Hello, In my build script I use the task to echo errors to a log file. At the end of my script i want to perform some operations (replace, rename) on that file. But this does not work, as ant hold a lock on that file the whole time. How can I release that? Regards, R.

RE: Set output path for

2004-12-01 Thread Robert Soesemann
che Nachricht- > Von: Robert Soesemann [mailto:[EMAIL PROTECTED] Gesendet am: > Mittwoch, 1. Dezember 2004 14:14 > An: [EMAIL PROTECTED] > Betreff: Set output path for > > Is there a way to tell ant's record task not only the name of the log > file, but also is

Set output path for

2004-12-01 Thread Robert Soesemann
Is there a way to tell ant's record task not only the name of the log file, but also ist path? Maybe there is a property e.g. ant.logdir? Any ideas? Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Write log file during xslt and xmlvalidate

2004-12-01 Thread Robert Soesemann
Hello, I have implemented a migration process in Ant with xsl transformations and XML Schema validations. I want to write the errors/warnings during validation and xsl:messages during into a log file. I know there is the echo task which can write to a file, but it is only able to write from the

foreach with relative path

2004-11-26 Thread Robert Soesemann
My problem lies in the following snippet: ... ... The output of the echo/$file-path variable are absolute paths like: C:\program\\xmls\foo1.xml C:\program\\xmls\bar\foo2.xml To further proce

RE: foreach parameter does not change

2004-11-26 Thread Robert Soesemann
ll -----Original Message- From: Robert Soesemann [mailto:[EMAIL PROTECTED] Sent: Friday, November 26, 2004 7:46 AM To: Ant Users List Subject: foreach parameter does not change Hello, In my ant pipeline I have the following 2 targets which perform a foreach on every xml file in a folder structur

foreach parameter does not change

2004-11-26 Thread Robert Soesemann
Hello, In my ant pipeline I have the following 2 targets which perform a foreach on every xml file in a folder structure. I do it this way to pass the path of the currently process file to the xsl transformer. Although the code looks like $file is overwritten each iteration, all my xmls get the sa

RE: Combine Apply + XSLT task

2004-11-26 Thread Robert Soesemann
Subject: RE: Combine Apply + XSLT task "Robert Soesemann" <[EMAIL PROTECTED]> wrote .. > Thanks, that much better than apply. But I couldn't find out how to > extract and pass the path of the currently processed file. > could try something like; ${filepath

RE: Combine Apply + XSLT task

2004-11-26 Thread Robert Soesemann
Users List Subject: RE: Combine Apply + XSLT task "Robert Soesemann" <[EMAIL PROTECTED]> wrote .. > I guess it would not be an task, but an for loop. But the > question is still how to extract path data and pass it to the xslt > task. check out the useful ant-contrib

RE: Combine Apply + XSLT task

2004-11-26 Thread Robert Soesemann
I guess it would not be an task, but an for loop. But the question is still how to extract path data and pass it to the xslt task. R. -Original Message- From: Robert Soesemann [mailto:[EMAIL PROTECTED] Sent: Freitag, 26. November 2004 14:25 To: [EMAIL PROTECTED] Subject: Combine Apply

Combine Apply + XSLT task

2004-11-26 Thread Robert Soesemann
Hello, In my ant pipeline I mainly process and transform XML document. I need to insert a path attribute to every processed file. My idea was to use an apply task to iterate over the whole folder structure and - by means I don't know - pass the name & path information of the currently processed fi