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.

Narrow XSLT Question regarding a Select statement

Featured Replies

I am importing XML data.

 

If I want to import the URL of the following XML:

 

<charts>

     <chart>

           <name>Median Condo Value</name>

           <url>http://www.zillow.com/app?chartType=affordability_avgCondoValue&graphType=barChart&regionId=11093&regionType=6&service=chart</url>

     </chart>

 

Then I use this select statement:  <COL><DATA><xsl:value-of select="//charts/chart[name='Median Condo Value']/url"/></DATA></COL>

 

Here is my question.  I want to import a Data element that has a "&" in the <name> field.  For example:

 

Normally for the XML below (and as with the example above) I would enter this select statement:

 

<COL><DATA><xsl:value-of select="//page[name='Homes & Real Estate']/tables/table/data/attribute/values/city/value"/></DATA></COL>

 

...but the "&" is causing the import to fail.

 

Does anyone have a suggestion?

 

<page>

   <name>Homes & Real Estate</name>

   <tables>

       <table>

           <name>Homes & Real Estate Data</name>

           <data>

               <attribute>

                   <name>Owners</name>

                   <values>

                       <city>

                           <value type="percent">0.52513637</value>

                       </city>

                   </values>

               </attribute>

           </data>

       </table>

   <tables>

</page>

  • Author

Found the Answer:  Substitute "&amp;" for "&" inside the quotes.

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.