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.

Help with Style sheet with repeating tags

Featured Replies

I am hoping someone can guide me with my stylesheet for the attached xml.

I want the "Comp" (which are real estate comparable sales) to import into separate records.

The import routine recognizes the mapping just fine, and I get no errors on import... except no data imports.

The second Test.xml is a corrected version.

Test.xml

Test.xsl.txt

Test.xml

The second Test.xml is a corrected version.

What does that mean? Which version do you want us to refer to?

  • Author

Use the second Test.xml as an example. I dont know how to delete the first one

Change this:

<xsl:for-each select="*/comp">




to this:


<xsl:for-each select="//comp">




or even better:


<xsl:for-each select="response/properties/comparables/comp">








BTW, you can simplify this (and the other two):


<xsl:value-of select="./address/street"/>




to:


<xsl:value-of select="address/street"/>

  • Author

Great. I will give that a shot

  • Author


  • Awesome. Did the trick (wish I knew the foundations). Thanks

  • Author

Comment.... can you tell me how to grab the "score" which is an attribute of comp tag?

Try:

<xsl:value-of select="@score"/>

Recommended "basic training":

http://www.w3schools.com/xpath/default.asp

  • Author

Thanks very much. That helps a lot

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.