April 23, 200421 yr All the examples I'm finding online and in my books seem to assume that I want to take xml, process it with an xslt, and create html output. (Even this XML forum is under the 'Publising FM Online' heading). Of course, xml isn't just for creating html output. What I'm having trouble with (beyond some really basic stuff) is taking xml, processing it with an xslt, and creating a new form of xml as my output. To be more specific, I need to export output from FM (using FMPDSORESULT style), and use an xslt to turn it into an xml file that can be read by another program -- MindManager ProX5 from Mindjet in this case. The problem I'm having is that the xml that MindManager needs doesn't take its data from a value between 2 tags, but rather from the attribute of an empty tag. For example, I'm used to looking at: <Topic> Hello World </Topic> Which I can produce with a simple xsl:for-each statement like: <xsl:for-each select="fmp:ROW"> <Topic> <xsl:value-of select="fmp:SomeFileMakerField" /> </Topic> </xsl:for-each> But MindManager wants it to look like this: <ap:Text PlainText="Hello World" /> So, how do I structure my xslt so that I can create this kind of tag with an attribute as the result? How do I get around the problem that the tag's beginning with <ap: seems to be another problem because of the colon? Any help or direction to resources on this topic is appreciated. PS -- anyone else working with MindManager? Thanks, Dan FileMaker Version: Dev 6 Platform: Windows XP
April 24, 200421 yr Try this : <xsl:for-each select="fmp:ROW"> <xsl:text disable-output-escaping="yes"><ap:Text PlainText=" </xsl:text> <xsl:value-of select="fmp:SomeFileMakerField" /> <xsl:text disable-output-escaping="yes">" /> </xsl:text> </xsl:for-each>
April 24, 200421 yr Author Fantastic! The 'disable-output-escaping' was the missing piece of the puzzle. This will solve lots of problems. Thanks, Dan
Create an account or sign in to comment