dbTalk Databases Forums  

Parsing XML with Filemaker Server 7 and XSLT, problem

comp.databases.filemaker comp.databases.filemaker


Discuss Parsing XML with Filemaker Server 7 and XSLT, problem in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
techmeck
 
Posts: n/a

Default Parsing XML with Filemaker Server 7 and XSLT, problem - 11-10-2005 , 04:48 PM






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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.