This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Encountered end of file.....
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: Encountered end of file.....
- From: "Robert C. Lyons" <boblyons at unidex dot com>
- Date: Wed, 9 Aug 2000 17:02:51 -0400
- Cc: <SNippard at SciQuest dot com>
- Reply-To: xsl-list at mulberrytech dot com
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 "&". For example:
<a>
href="http://wwwapps.ups.com/etracking/tracking.cgi?tracknums_displayed=&
;TypeOfInquiryNumber=T&HTMLVersion=4.0&InquiryNumber1={$trackNum}&am
p;track.x=22&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