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.

How to choose DATA line in XML portal export?

Featured Replies

Hi,

I'm exporting a form with a portal on it using XML and then transforming using XSLT into an Excel doc. In the XML export, all the portal rows show up like this:


...

<Shipment_Description>

<DATA>BT01L - LTO Primary Left</DATA>

<DATA>BT01R - LTO Primary Right</DATA>

<DATA>CT01L - LTO Primary Left</DATA>

<DATA>CT01R - LTO Primary Right</DATA>

<DATA>AT04L - LTO Primary Left</DATA>

<DATA>AT04R - LTO Primary Right</DATA>

<DATA>AT05L - LTO Primary Left</DATA>

<DATA>AT05R - LTO Primary Right</DATA>

<DATA>AT06L - LTO Primary Left</DATA>

<DATA>AT06R - LTO Primary Right</DATA>

</Shipment_Description>

</ROW>

</FMPDSORESULT>





When I try to reference the field "Shipment Description" in the XSL like so:





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

...in an attempt to place the values in different rows in the Excel doc, it inserts all of the values when I really want to insert one value per row. Is there any way to stipulate in an XSL which DATA line you want within the field? For instance, DATA 1, DATA 2, DATA 3, etc.? Or is it an all or nothing situation?

Thanks,

Mike

Is there any way to stipulate in an XSL which DATA line you want

Try:

<xsl:value-of select="fmp:Shipment_Description/fmp:DATA[1]" />

  • Author

Works like a charm!!! Thanks, Comment! :D

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.