allgenresaade
New Member
I know this is super noob, but I just don't understand why my code is not working. Here is XML snippet:\[code\]<cookies> <lastviewedentityname>Category</lastviewedentityname> <lastviewedentityinstanceid>72</lastviewedentityinstanceid> <lastviewedentityinstancename>Fall Florals</lastviewedentityinstancename> some random text bla bla</cookies>\[/code\]Here is the XSL snippet:\[code\] <xsl:value-of select="/cookies/lastviewedentityinstanceid"/>\[/code\]The result I'm looking for is \[quote\] 72\[/quote\]But it seems I'm getting empty string or something. Looking at this: http://www.w3schools.com/xsl/xsl_value_of.asp, I'm assuming my code is ok. Then in my trying to find answers, I found this site: http://www.mizar.dk/XPath/Default.aspx and I notice when I try here, it highlights the element, not the value inside of it: http://screencast.com/t/NXuNiCHbEd0T