Save as file - xslt transformed - string-length problem
Hi forum
I'm trying to save form entries in a file using som xslt transformation. I'm pretty new to this so please bear with me if this is a totally noob question.
I'm trying to count the string length of the value field but I must be doing something wrong. This is my xslt-file so far - which isn't working:
it works as expected, but I can't figure out how to reference the value of the value tag. I think I may have to assign the value to a variable and use that, but I don't know how to do this.
Can anyone please help me?
Best regards, Michael
Additional question: The default "Save as file"-workflow has an option to name file extension. I put "txt" in this field but it still saves the file as .xml. Can we do anything about this?
Save as file - xslt transformed - string-length problem
Hi forum
I'm trying to save form entries in a file using som xslt transformation. I'm pretty new to this so please bear with me if this is a totally noob question.
I'm trying to count the string length of the value field but I must be doing something wrong. This is my xslt-file so far - which isn't working:
If I put some constant string in string-length like this
it works as expected, but I can't figure out how to reference the value of the value tag. I think I may have to assign the value to a variable and use that, but I don't know how to do this.
Can anyone please help me?
Best regards,
Michael
Additional question: The default "Save as file"-workflow has an option to name file extension. I put "txt" in this field but it still saves the file as .xml. Can we do anything about this?
Comment author was deleted
Hi Michael
And does the <xsl:value-ofselect=".//value"/> tag output anything?
Maybe you'll need to cast to string first
Comment author was deleted
For the save as file workflow I've added the issue to our tracker and a fix should be part of the next maintenance release
http://issues.umbraco.org/issue/CON-269
Hi Tim
Thanks, that did the trick! Great!
I'll keep an eye out for the next release for the fix regarding the issue with file extensions.
Michael
is working on a reply...