Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

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> 

  • 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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.