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

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.