October 5, 201213 yr 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
October 5, 201213 yr The second Test.xml is a corrected version. What does that mean? Which version do you want us to refer to?
October 5, 201213 yr Author Use the second Test.xml as an example. I dont know how to delete the first one
October 5, 201213 yr 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"/>
October 6, 201213 yr Author Comment.... can you tell me how to grab the "score" which is an attribute of comp tag?
October 6, 201213 yr Try: <xsl:value-of select="@score"/> Recommended "basic training": http://www.w3schools.com/xpath/default.asp
Create an account or sign in to comment