February 4, 201313 yr Newbies 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
February 7, 201313 yr 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
Create an account or sign in to comment