← Prev in month ← Prev in thread

Adding a HTML link with & parameters

From
Lars Vogel <>
Date
2012-03-13T10:05:18+00:00
ID
Thread
Adding a HTML link with & parameters
Hello,

I'm adding some HTML and _javascript_ to the HTML output of my Docbook sources. I'm using the user.header.content customization.

This work really well except if I try to include parameters in a link, e..g 

<a href="" href="http://www.vogella.de/w/click.here?sid=65209&m=3&c=1">http://www.vogella.de/w/click.here?sid=65209&m=3&c=1" target="_blank">Testing</a>

which gives me the following error message:

 [xslt] /home/vogella/workspace/docu/de.vogella.publishing/mystylesheets/headerandroid.html:105:55: Fatal Error! Error reported by XML parser Cause: org.xml.sax.SAXParseException; systemId: file:/home/vogella/workspace/docu/de.vogella.publishing/mystylesheets/headerandroid.html; lineNumber: 105; columnNumber: 55; unexpected character after entity reference (found "=") (expected ";")

     [xslt] : Warning! org.xml.sax.SAXParseException; systemId: file:/home/vogella/workspace/docu/de.vogella.publishing/mystylesheets/headerandroid.html; lineNumber: 105; columnNumber: 55; unexpected character after entity reference (found "=") (expected ";") Cause: org.xml.sax.SAXParseException; systemId: file:/home/vogella/workspace/docu/de.vogella.publishing/mystylesheets/headerandroid.html; lineNumber: 105; columnNumber: 55; unexpected character after entity reference (found "=") (expected ";")

It seem to be pointing to the &. I tried to quote it with "\&" but this did not help.

How can I include such a link into the HTML output?

Best regards, Lars

-- 
Lars
http://www.vogella.de - Eclipse, Android and Java Tutorials
http://www.twitter.com/vogella - Lars on Twitter
← Prev in month ← Prev in thread