Hope someone can help me. I'm building a Filemaker 7 application that
will generate XML files from data in my database, and then use XSLT
documents to convert those XML files into web pages. I'm defining a
custom set of XML tags, then using a calc field to merge the tags with
values from a record. So if a table has these fields:
page_title
intro_text
And my xml tags are:
<page>, <metadata>, <pagetitle>, <pagebody>, <intro>
Then a user could create an XML document in a global field using merge
names for the fields he/she has available. Coming up with something
like this:
<page>
<metadata>
<pagetitle>||page_title||</pagetitle>
</metadata>
<pagebody>
<intro>||intro_text||</intro>
</pagebody>
</page>
A calculation would then replace the merge tags enclosed in pipe
characters (||) with values from each record, and spit out an XML file
for every record. I'll use a plugin to create the files, haven't
decided on the file management plugin yet. Any ideas?
Anyways, here's my problem. When I tried using FM Pro 7 and the
"convert" script step to take the XML file above and convert it into a
valid html file, I get error messages that say "XML parsing error:
Expected end of area of tag 'METADATA' ". The problem is that the XML
tags I'm working with don't include 'METADATA'. So I'm thinking that
since the FM custom XML tags include 'METADATA', somehow FM Pro is
looking for my XML file to have those tags.
So my question is: Can FM 7 (Pro or Server) be used to convert
generic, custom XML files using custom XSLT files, or can I only use
XSLT to convert the XML files that FM generates and exports?
Hope someone can help me. Seems there's not too many people out there
using XSLT and FM :).
Thanks
Matt
|
|
0
|
|
|
|
Reply
|
matteckman (1)
|
11/10/2005 10:48:53 PM |
|