Which version of DomDocument are you using, I don't know of any limitation on string length, other than max length in
VB which is about 65k.
Can you show where you create the DomDocument? Are you sure the full string is being held in the session variable and it's not being truncated before it reaches the xsl?
Aside from that this code is very wasteful, searching twice for the same node:
Code:
if oxsldoc.documentelement.selectsinglenode("//xsl:variable[@name='P_Query']") is nothing = false then
oxsldoc.documentelement.selectsinglenode("//xsl:variable[@name='P_Query']").text = objSessionData("Query") end if
change it to:
Code:
Dim oSearchNode
Set oSearchNode = oxsldoc.documentElement.selectSingleNode("//xsl:variable[@name='P_Query']")
If Not oSearchNode Is Nothing Then
oSearchNode.text = objSessionData("Query")
End If
Joe (MVP - xml)