Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

xml export html title


This topic is 7964 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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

  • 3 weeks later...
  • 3 months later...
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.