Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

XSL: Mask special characters when calling Java method

Posted on 2006-06-21
1
Medium Priority
?
285 Views
Last Modified: 2013-11-18
<xsl:variable name="regex" select="^CI.*pdf$"></xsl:variable>

String '^CI.*pdf$' leads to invalid char message from Stylus Studio XSLT engine. How to mask?
0
Comment
Question by:go4java
1 Comment
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 1500 total points
ID: 16950655
Hi go4java,
> <xsl:variable name="regex" select="^CI.*pdf$"></xsl:variable>

I assume you want this to be a string, not an XPath expression
try adding single quotes around it
<xsl:variable name="regex" select="'^CI.*pdf$'"></xsl:variable>


Cheers!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

916 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