XSLT Help needed - 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.

XSLT Help needed

dfurey16dfurey16 Posts: 2Member
I have an XML document and a XSLT document

THe XSLT document brings back a filtered document that has the VendorName that starts with a particular sub-string
This works as expected with alphabet and number characters and the ' (single quote ' entity) character but does not work if a double quote character " is part of the string to filter on


This returns all Vendor Names that begin with A (either case)

XML Document

<?xml-stylesheet type="text/xsl" href="C:XSL1.xsl"?>
















XSLT Document





















If I want to search on the string A" the line




changes to:




I now get an error Expected token ')' found 'STRING'

Does anyone know how to solve this

Your help is greatly appreciated.

Regards David Furey

Comments

  • infidelinfidel Posts: 2,900Member
    : If I want to search on the string A" the line
    :
    :
    :
    :
    : changes to:
    :
    :
    :
    :
    : I now get an error Expected token ')' found 'STRING'
    :
    : Does anyone know how to solve this

    Can you try escaping the " with a ? i.e. "A"" so the parser doesn't take your query's " as the end of a string containing the letter A?


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

Sign In or Register to comment.