Quantcast
Channel: NBStore Discussions Rss Feed
Viewing all articles
Browse latest Browse all 4081

New Post: relatedproducts.xsl ... once again ... how to reference to custom fields of products

$
0
0

In debug mode you should not need to restart, it turns the caching off.

However I've had a play around and I think I see the problem...in the XML the XMLData node is stored as encoded html

<XMLData>&lt;genxml&gt;&lt;textbox&gt;&lt;txttest&gt;TESTtextbox&lt;/txttest&gt;&lt;/textbox&gt;&lt;checkbox /&gt;&lt;dropdownlist /&gt;&lt;checkboxlist /&gt;&lt;radiobuttonlist /&gt;&lt;edt /&gt;&lt;/genxml&gt;</XMLData>

So xsl will not parse this and hence you have a blank output.

The only way around this I can think of is to maybe use substring-before and substring-after functions on the XMLData node something like this :

<xsl:value-of select="substring-after(substring-before(./P/NB_Store_ProductsInfo/XMLData,'</txttest'),'txttest>')" />


Viewing all articles
Browse latest Browse all 4081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>