Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL translation document ??

Status
Not open for further replies.

nikb3522

Programmer
Mar 25, 2008
2
US
Hello,

I am trying to import a simple XML document into FMP and am having trouble with the XSL file to translate.
this is the XML doc:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<passage>Coyote </passage>

What would the XSL doc look like to translate this?

any help is greatly appreciated ! !
 
What is FMP? What do you want your simple XML file to look like after XSL transformation?

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
It is indeed annoying to read questions posting less than half of the story. As such the question is not anwerable. You can, nevertheless, check out this article:
where you can download two xsl document: "Simple import.xslt" and "FileMaker.xslt". The latter is to be included in the former.

Supply all the db information such as
[1] table name etc in the former as parameter (DATABASE-NAME) in the call-template to "TABLE"; and
[2] field name in the call-template to "FIELDS"; and
[3] give the column data 2 xpath in the xsl:with-param name="RESULTSET-RECORDS":
[3.1] [tt]<xsl:for-each select="[COLOR=blue ivory]/[/color]">[/tt]
and
[3.2] [tt]<xsl:with-param name="DATA" select="[COLOR=blue ivory]passage[/color]" />[/tt]
And you are about set in the big picture.
 
My apologies Sir.

I have an Indesign file that I exported as an XML. InDesign has a simple function to alow users to do this. The Indesign document has one text element tagged as passage, here is the XML that was created

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<passage>Coyote </passage>

I would like to import this XML into a fileMaker Pro Database. The Database is named Info.fmp and it has 1 field named passage, where I would like the data to be imported to. When you import the XML into FileMaker Pro it asks for an XSL document to translate the info...It is at this stage where my knowledge breaks down.

Is this enough info from your standpoint to create an XSL document ? IF not my sincere apologies.....nik

 
I have tried the approach in the cited article. It should be working. Just supply the parameter [1] DATABASE-NAME with your concrete need, ie, 'Info.fmp'; and then the field name [2] with 'passage'.

I have not much to add to my previous post. In a standalone scenario, I have to comment out the line in FileMaker.xslt setting xsl:attribute with name="xmlns" which might be acceptable for the parser and transformer (xercer-C++/xalan) FMP is using.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top