xsl-list
[Top] [All Lists]

RE: Retrieve External String XML Data as Object

2005-09-21 04:41:11
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.


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>