Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Parsing LSCS results
Denise Bowker
I'm stumped on this one.
In an XSL component I have:
<xsl:variable name="searchString">(a valid LSCS search string</xsl:variable>
<xsl:variable name="RESULTS" select="document($searchString)"/>
When I do <xsl:copy-of select="$RESULTS"/> I get back:
(paraphrasing here)
<results>
<assets>
<document>
lots of data about the document
</document>
<document>
lots of data about the document
</document>
</assets>
</results>
When I do <xsl:value-of select="count($RESULTS/results)">
I get back 0.
When I do <xsl:value-of select="count($RESULTS/descendant::*[name()='results'])"/> I get back 1
When I do
<xsl:for-each select="$RESULTS/*">
"<xsl:value-of select="name()"/>"
</xsl:for-each>
I get back: "results"
I've been doing XSLT for a decade plus and have never seen anything like this. Has anyone else run into parsing issues from results coming back from LSCS?
Find more posts tagged with
Comments
There are no comments yet