You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Haldi, Silvio" <sh...@zuehlke.com> on 2005/09/01 14:34:12 UTC

"x:parse" with absolute filename does not work

Hi
I wan't to parse an XML document on my filesystem using the parse tag
from the XML Jelly-library.
If I specify the source XML file by an absolute Path it does not work.
It seems that the parse tag is expecting a relative (to ${basedir})
path.

I want to to something like this:

<x:parse var="myFile" xml="${basedir}/../mydir/myFile.xml"/>

How can I do this?

Thanks
Silvio


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: "x:parse" with absolute filename does not work

Posted by Kenney Westerhof <fo...@neonics.com>.
On Thu, 1 Sep 2005, Haldi, Silvio wrote:

x:parse expects an URL, so prefix the filename with 'file://'.

> Hi
> I wan't to parse an XML document on my filesystem using the parse tag
> from the XML Jelly-library.
> If I specify the source XML file by an absolute Path it does not work.
> It seems that the parse tag is expecting a relative (to ${basedir})
> path.
>
> I want to to something like this:
>
> <x:parse var="myFile" xml="${basedir}/../mydir/myFile.xml"/>
>
> How can I do this?
>
> Thanks
> Silvio
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org