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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.