Newbies asmith Posted September 26, 2002 Newbies Posted September 26, 2002 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
beverly Posted February 3, 2003 Posted February 3, 2003 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.
Recommended Posts
This topic is 7964 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now