[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Retrieve External String XML Data as Object

Subject: RE: Retrieve External String XML Data as Object
From: <A.J.Bull@xxxxxxxx>
Date: Wed, 21 Sep 2005 13:41:11 +0200
aj bull
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.