You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Marc-André GROSY <Ma...@cidj.com> on 2005/10/25 12:13:47 UTC

download task index.xml

Hi,
I want create a  download task which export index.xml file on my local computer. 
How could i do it ?
Thanks a lot
 
Marc

Re: download task index.xml

Posted by so...@gmail.com.
On 10/25/05, Marc-André GROSY <Ma...@cidj.com> wrote:
> I want create a  download task which export index.xml file on my local
> computer.

I think you are asking for how to allow direct access to the XML
files.  If so, add this to your publication-sitemap.xmap:
     <map:match pattern="**_*.xml">
        <map:generate src="content/{1}/index_{2}.xml"/>
        <map:serialize type="xml"/>
      </map:match>

(I do not recommend using this code in production because it displays
the publisher's login name and email address.)

Then use your browser to access the URL including the language.
So:
  http://yourServer/pub/live/index.html
would be accessed with:
  http://yourServer/pub/live/index_en.xml

Your browser may display it weirdly, but it will be correct if you
"view source" or just download it.

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: download task index.xml

Posted by Stephen Varga <sv...@yahoo.com>.
I would use the export functionality built into lenya.  Look in the
publication/config/tasks/tasks.xconf
 
uncomment the <task id="export"
 
change the parameter export-path value to be "c:/somefolder/somefolder/etc"
 
Hope this helps

Marc-André GROSY <Ma...@cidj.com> wrote:
Hi,
I want create a  download task which export index.xml file on my local computer. 
How could i do it ?
Thanks a lot
 
Marc

		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.