Solved

How to call another vbscript function within msxsl script ??

Posted on 2003-11-25
5
992 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

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 …
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now