Having problem parsing parameters that contain ' & - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Having problem parsing parameters that contain ' &

dfurey16dfurey16 Posts: 2Member
I am using the XSLT document to filter records from an XML document
The XSL is shown below:

I have a parameter named "search-for" that is used to bring back a list of Vendor Names that start with this parameter.

The list works as I want for alpabetical letters. Setting the parameter to 'a' brings back a list of vendors beginning
with 'a' as shown below

[Code]


[Code]

If I change the parameter to be 'a'' with a single quote

[Code]



[Code]


The XSL Transformation fails and returns the following error

A string literal was not closed.
'a'-->'












[Code]

XSL File

[Code]




















[Code]

Many thans in advance for any responses
David

Comments

  • infidelinfidel Posts: 2,900Member
    : [Code]
    :
    :
    : [/Code]
    :
    : If I change the parameter to be 'a'' with a single quote
    :
    : [Code]
    :
    :
    :
    : [/Code]

    Shouldn't it be select=" 'a'[red]'[/red] " ?

    FYI, to turn off a code style block, use [leftbr]/Code[rightbr]


    [size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size]

Sign In or Register to comment.