[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Retrieve External String XML Data as Object


Subject: RE: [xsl] Retrieve External String XML Data as Object
From: <A.J.Bull@xxxxxxxx>
Date: Wed, 21 Sep 2005 13:41:11 +0200

Finally!  It works, but I still am not 100% sure why.

So, I changed my script to the following:

 <msxsl:script language="VB" implements-prefix="user">
    <![CDATA[
 	Public Shared Function TransformToNodeset(ByVal arg As String) As
XmlDocument
        Dim doc As New System.Xml.XmlDocument
        doc.LoadXml(arg)
        Return doc
    	End Function
   ]]>
  </msxsl:script>

...having found a simpler way to do the parsing of the XML fragment from
RecipInstituteNum.  Then, I changed the way I was dealing with the variable:

	<xsl:variable name="institute">
		<xsl:copy-of select="user:TransformToNodeset(RecipInstituteNum)"/>
	</xsl:variable>

...and finally, per David's suggestion, I substituted xsl:copy-of in for
xsl:value-of, even though it gives me a string in the end anyway:

	<xsl:copy-of
select="msxsl:node-set($institute)/NewDataSet/InstituteData/Institut_Standard
_Name"/>

Maybe there's some overkill but it works!

Thanks,

Tony

This email message is intended only for the use of the named recipient.
Information contained in this email message and its attachments may be
privileged, confidential and protected from disclosure. If you are not the
intended recipient, please do not read, copy, use or disclose this
communication to others. Also please notify the sender by replying to this
message and then delete it from your system.


Current Thread
Keywords
xml