cancel
Showing results for 
Search instead for 
Did you mean: 

Web Form XSLT Question: Get The Name?

justinp
Champ in-the-making
Champ in-the-making
When you create content for a web form, you get a page that asks for a name, type, content type, and web form. After you fill that out, the form shows up based on your XSD. Is it possible to get the name you typed on the previous page into the XML document that is created after you fill out the XSD form? Since the file is named after the name you entered, I tried getting it by using the XSLT function, document-uri, but it was undefined. Is there any way to get that name, or do I have to ask for it again in my XSD?
1 REPLY 1

justinp
Champ in-the-making
Champ in-the-making
I ended up doing it by getting the name of the XML file (since it's ${name}.xml), and then dropped the .xml.

<xsl:value-of select="substring-before($alf:form_instance_data_file_name,'.xml')"/>