Solved

How to call another vbscript function within msxsl script ??

Posted on 2003-11-25
5
1,002 Views
Last Modified: 2012-05-04
Hi,

I have embedded vbscript inside xsl, till now i was calling vbscript function from xsl and it was working fine.

How can i call another vbscript function from that embedded script ?

I tried to call a function using prefix inside vbscript still didn't worked and it give me error like "a semi colon character is expected in line no. xyz "

Here is that line : <msxsl:script language="VBScript" implements-prefix="myPrefix">

Can somone please throw some light on this issue.

Thanks in the anticipation that i will get some hint to solve this.

Regards,
Dipesh
0
Comment
Question by:DipehKhakhkhar
5 Comments
 
LVL 26

Expert Comment

by:rdcpro
ID: 9822056
If you're inside the script block executing functionA, and you want to call functionB, you don't need to specify prefixes.  That's only when you call a function from XPath.  You'll have to post a bit more code for us to help.

Regards,
Mike Sharp
0
 
LVL 1

Author Comment

by:DipehKhakhkhar
ID: 9822240
Hi Mike,

Thanks for replying immediately.

Exactly i did that only and whenever i was making call from xsl part it was working. Then i checked my vbscript which was inside <xsl:msxsl> element and i found that it was conidering characters like "&",  "<" and ">" as xsl/xml specific characters. Because of this i was getting errors and i changed them respectively to &amp; &lt; and &gt; and it then worked for me.

Since my output is text only i thought, it will escape these characters but it does not.

But finally i got my solution.
Thanks for your reply.

Regards,
Dipesh
0
 
LVL 9

Expert Comment

by:sparkplug
ID: 9824003
A simpler solution for escaping character in script would be to use CDATA tags:

e.g.

<msxsl:script language="VBScript" implements-prefix="myPrefix">
<![CDATA[
    Function AddFullStop(s)
            AddFullStop=s & "."
    End Function
]]>
</msxsl:script>

>S'Plug<
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11355891
Closed, 75 points refunded.

modulo
Community Support Moderator
Experts Exchange
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question