|
Subject: Re: [xsl] collection issue, update/rename file From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Wed, 29 Feb 2012 11:04:26 +0000 |
On 29 February 2012 11:02, <davep@xxxxxxxxxxxxx> wrote:
> input a directory full of .xml files
>
> running a transform to modify one element, identity
> transform for the rest.
>
> (Yes, I have created a backup)
>
> I want to
> process A.xml, write out A.xml ... somehow
> (no I'm not on Linux to make it easy)
>
> I'm using
> <xsl:for-each select="collection('file:///Long-path?select=*.xml')">
> <xsl:result-document
> href="???"
> method="xml"
> encoding="utf-8"
> indent="yes">
>
> <xsl:apply-templates/>
>
>
> base-uri(.) returns the full pathname of the source document?
> Do I have to work with that to obtain A.xml?
> (text processing....)
> Is there some way I can obtain the filename.extn?
1. use Kernow :)
or
2. use tokenize(document-uri(.), '/')[last()]
--
Andrew Welch
http://andrewjwelch.com
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] collection issue, update/rena, davep | Thread | [xsl] how to cast a sequence (e.g. , Robby Pelssers |
| [xsl] collection issue, update/rena, davep | Date | [xsl] how to cast a sequence (e.g. , Robby Pelssers |
| Month |