Jump to content
Server Maintenance This Week. ×

Help with Style sheet with repeating tags


CCBtx

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

Recommended Posts

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

Link to comment
Share on other sites

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"/>

Link to comment
Share on other sites

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