This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Encountered end of file.....


shelly nippard wrote:
> I'm getting the following error:
>
> Encountered end of file while searching for ";"
>
> on this line in my code:
> <a
> href="http://wwwapps.ups.com/etracking/tracking.cgi?tracknums_
> displayed=&Typ
> eOfInquiryNumber=T&HTMLVersion=4.0&InquiryNumber1={$trackNum}&
> track.x=22&tra
> ck.y=10">
> 	<xsl:value-of select="$trackNum"/>
> </a>
>
> does anyone know what this means?

Shelly,

The XML parser in your your XSLT processor is interpretting
the first ampersand in your code as the beginning of an
entity reference. An entity reference begins with an
ampersand and ends with a semicolon. The XML parser looked
for a semicolon after the first ampersand and it never found
one.

The solution is to replace each literal ampersand in your code
with "&amp;". For example:

<a>
href="http://wwwapps.ups.com/etracking/tracking.cgi?tracknums_displayed=&amp
;TypeOfInquiryNumber=T&amp;HTMLVersion=4.0&amp;InquiryNumber1={$trackNum}&am
p;track.x=22&amp;track.y=10">

Hope this helps.

Bob

------
Bob Lyons
E-Commerce Consultant
Unidex, Inc.
1-732-975-9877
boblyons@unidex.com
http://www.unidex.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]