Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > filemaker developer 7 - CDML tags
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 15th November 02:59
grasshopper
External User
 
Posts: 1
Default filemaker developer 7 - CDML tags



I have to generate html files from a FM 7 table... I enabled Instant
Web Publishing, and seem to be able to access a template I put into the
Web folder, that's all god... except, the CDML tags don't get replaced
thanks to the brilliant people at at Filemaker, Filemaker's CDML tags
dont' work any more... thanks filemaker.


I have a real simple example:

<html>
<head>
<title>[FMP-field: pageTitle]</title>
</head>
<body>
</body>
</html>


how can I get the CDML tag to be replaced? (truthffully, I can't even
recall how to reference a related field, but I'm sure that's another
issue altogether.) the web templates that I'm populating are greater
than 32k, so I can't just do a calculation... which would have been
absolutely unruly to maintain anyway.

apparently, FM's using XSLT stylesheets instead now, but just TRY to
find an example of that, let alone a clear one. apparently, we're just
supposed to know how to implement them.

anybody have any ideas how to get around this?

thanks in advance
G
  Reply With Quote


 


2 15th November 02:59
howard schlossberg
External User
 
Posts: 1
Default filemaker developer 7 - CDML tags



FileMaker Server Advanced (which you should need to serve any custom web
pages) comes with a CDML conversion tool. The result of your page above is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xslt-cwp-query param="-grammar=fmresultset"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fmrs="http://www.filemaker.com/xml/fmresultset" xmlns:fmxslt="xalan://com.fmi.xslt.ExtensionFunctions"
exclude-result-prefixes="xsl fmrs fmxslt">
<xslutput method="html" encoding="ISO-8859-1"/>
<xsl:template match="/fmrs:fmresultset"> <xsl:variable name="default-record"
select="/fmrs:fmresultset/fmrs:resultset/fmrs:record[1]"/>
<html>
<head>
<title><xsl:value-of select="$default-record/fmrs:field[@name =
'pageTitle']/fmrs:data[1]"/></title>
</head>
<body>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

There is an XSLT library at
<http://www.filemaker.com/products/technologies/xslt_library.html>,
which may (or probably not) help you. There is an XML-FMP discussion
group at <http://www.filemaker.com/products/technologies/xml_talk.html>.

I wish I could say that any of these resources were helpful to me, but
they're not. CDML was simple, but not very powerful. XML/XSLT is very
powerful (or so I keep getting told), but it is not simple...unless you
stop to study and learn it.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance
  Reply With Quote
3 15th November 02:59
grasshopper
External User
 
Posts: 1
Default filemaker developer 7 - CDML tags


thank you so much Howard, this is wonderful!

I'm actually only running FM Dev; this isn't a web deployed application
(I use Virtuoso for that http://www.openlinksw.com/virtuoso ). this
task is only a desktop data manipulation (albeit a complex one), so I
don't need the full power of FM Server.

I've recently been getting into XML/XSLT, so I'm primed to take
advantage of the wonderful resources you listed, thank you!

these examples will set me on my way, thank you again!
g.

On 2005-07-13 18:10:31 -0700, Howard Schlossberg
<howard@antispahm.fmprosolutions.com> said:
  Reply With Quote
Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666