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

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

Recommended Posts

  • Newbies
Posted

Hello everyone,

 

I have a problem I couldn't solve despite extensive searching...

 

This is a part from an XML.   

 

<contributors>

<authors>

<author>Willett, C G</author>

<author>Tepper, J E</author>

<author>Kaufman, D S</author>

<author>Shellito, P C</author>

<author>Eliseo, R</author>

<author>Convery, K</author>

<author>Wood, W C</author>

</authors>

</contributors>

 

I tried to import all authors into a Filemaker cell by using this xsl (excerpt) 

 

 

<FIELD EMPTYOK="YES" MAXREPEAT="15" NAME="Author" TYPE="TEXT"/>

 

    <COL>
<DATA>
<xsl:for-each select="contributors/authors">
<xsl:value-of select="author">
</xsl:value-of>
</xsl:for-each>
</DATA>
</COL>

 

 

Unfortunately only the first name is imported. Why? What's missing? 

 

Would be glad if someone could help me...

 

Cheers

 

 

 

 

 

Posted
Hi,
 
you need to select the author element for the for-each statement. For the import you select the author contents via "."
XPATH works as the same implies via the path to the information, it's not a script language.
 
This way it will work:
<xsl:for-each select="contributors/authors/author">
<xsl:value-of select=".">
 
Cheers,
Alexander

This topic is 4306 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.