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

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

Recommended Posts

Posted

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

Posted

Try this :

  

   <xsl:for-each select="fmp:ROW">

      <xsl:text disable-output-escaping="yes">&lt;ap:Text PlainText=" </xsl:text>

         <xsl:value-of select="fmp:SomeFileMakerField" />

      <xsl:text disable-output-escaping="yes">" /&gt; </xsl:text>

   </xsl:for-each> 

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