Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem getting link to validate in XHTML

Status
Not open for further replies.

gtbikerider

Technical User
Joined
May 22, 2001
Messages
81
Location
GB
I have a link such as

index.cfm?action=document&DocumentID=1

I need to get my document validated as XHTML and it's reporting:

Error: unknown entity "DocumentID"

and

Error: reference not terminated by refc delimiter
(refers to the = sign)

Any clues as to how a link like this should be coded for valid XHTML? --
John
 
Is that a link in an href in the page, or is that a link to the page?

I tried the puting:
<a href=&quot;index.cfm?action=document&DocumentID=1&quot;>Link</a>

In a page myself, and it validated as an XHTML document just fine... what other code is in the page? - tleish
 
It's a chunk of code on the page not the URL of the page itself. The code is actually...

<cfoutput query=&quot;GetDocuments&quot;>
<p>
<a href=&quot;./index.cfm?action=document&DocumentID=#DocumentID#&quot;>
#Linktext#
</a>
</p>
</cfoutput>

...could the fact that it's being processed by CF make any difference? --
John
 
I think I found the right answer is to use &amp instead of just &

--
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top