September 26, 200223 yr Newbies I want to have a field in my database be the title of the web page generated by an XSL template file. One of the sample files uses the name of the database as the title of the web page like so: <html> <head> <title> <xsl:value-of select="$dbName"/> </title> </head> I am wondering if it is possible to have the value in a specific field as the title. field name: company and have the value of the 'company' field (ABC Yard Service) to be the title in a webpage. I was thinking I could use something like: <xsl:value-of select="fieldName:company"/> but I do not know the correct syntax or if it is even posssible
February 3, 200322 yr Sure! you can use any <DATA> element in the source XML from FileMaker as any part of the result XML (or HTML or text). It's a matter of getting the right path (XPath of the element) and putting it in the XSL (something like): <xsl:value-of select="/FMPXMLRESULT/RESULTSET/ROW[1]/COL[3]/DATA" /> This means: get the field contents of the third field (column) of the first row.
Create an account or sign in to comment