Hi PassCody,
First of all welcome to StackOverflow:D!
I have a few questions for you:
- What do you want to do with the file? Do you want to relocate/rename
it, or do you want to perform certain operations on the contents of
the file?
- In what kind of mapstructure is the file located? Can you provide an example? Are there multiple files in the same folder?
This information is necessary to give you a correct answer. The more you provide, the better the answer will help your specific situation.
For example, if you would want to get the name of an xml file in your current location. You could include:
<URL:http://www.w3.org/TR/xpath-functions/#func-document-uri>
<xsl:value-of select="document-uri(/)"/>
This will provide you with the full URI (location) of your file, to get the filename you need to select the string after the last "/". You could use sub-string functions to specify parts of string that you would want to use.
If you can include the path of your files in a variable (see this question) you could loop over files in your current directory to create a new file with the same content, which you could write to a new location or do all other kinds of things with.
Lets just say that there are a lot of fun things you can do with xslt, but people will need a bit more info to get to your specific case :).
A lot of usefull XSLT functions can be found on this website. I'm sure if you play around this website for a bit, you will be able to find whatever you are looking for as well.
I hope this helps! Have a nice day.
Jesper
Edit: I have changed some of my answer to not include erroneous information.
Edit: Answer to question in the comments:
You can add a "new line" part in your xslt within your code loop. Add <xsl:text> </xsl:text>
or <xsl:text>
</xsl:text>
. Either of the two will work.
Instead of:
ErrorMessage1ErrorMessage2
,
You will get:
ErrorMessage1
ErrorMessage2