I wrote a xslt script to setup a image gallery for fancybox. The script generates the html as expected by does something extra. After the html elements needed for fancybox a link element is generated after every html element from where the script is called.
See the html code below. The bold ones are unexpected. I also added the whole xslt script.
Are you sure that the XSLT is generating the content in the P tag, as this is after the close of the <ul id="FotoAlbums">, which is at the end of the XSLT template?
<p> <aclass="element_groep"rel="Snertpop 2009"href="/media/630/winter.jpg">Fotoboek body tekst</a> </p>
Ik have to be more precise, the p element is in the HTML template that call the xslt. I think it is what the browser does when there is some bug in the xslt.
I still not have a solution for the problem I face described above. Really appreciate any help. I could give you the link of the website, then can you see the HTML that is generated.
without investigating your snippet in detail, it seems as if you output <a>-tags within you <ul>...</ul> section whithout embedding them in <li>...</li> tags.
I.e. this code
<!-- Get all photo's from this gallery --> <xsl:for-each ... </xsl:for-each>
should probably eithe be moved, removed or embedded within <li>..</li> tags
Try using the "View source" instead of the firebug console. The console will give you the interpreted html, and not the actual source. So if you f.ex. have an invalid element somewhere like <a />, then firebug will show you how firefox tries to correct that error.
The View Source might give you a more accurate output to debug from. You could copy it here as well, so we can investigate further.
XSLT unexpected html code
Hi
I wrote a xslt script to setup a image gallery for fancybox. The script generates the html as expected by does something extra. After the html elements needed for fancybox a link element is generated after every html element from where the script is called.
See the html code below. The bold ones are unexpected. I also added the whole xslt script.
Anyhelp appreciated.
Are you sure that the XSLT is generating the content in the P tag, as this is after the close of the <ul id="FotoAlbums">, which is at the end of the XSLT template?
Hi Richard,
I see it in firebug. The HTML above is copied from there.
Richard,
Ik have to be more precise, the p element is in the HTML template that call the xslt. I think it is what the browser does when there is some bug in the xslt.
Hi all,
I still not have a solution for the problem I face described above. Really appreciate any help. I could give you the link of the website, then can you see the HTML that is generated.
Kind regards,
Bas
Hi Bas,
without investigating your snippet in detail, it seems as if you output <a>-tags within you <ul>...</ul> section whithout embedding them in <li>...</li> tags.
I.e. this code
should probably eithe be moved, removed or embedded within <li>..</li> tags
>Tommy
Try using the "View source" instead of the firebug console. The console will give you the interpreted html, and not the actual source. So if you f.ex. have an invalid element somewhere like <a />, then firebug will show you how firefox tries to correct that error.
The View Source might give you a more accurate output to debug from. You could copy it here as well, so we can investigate further.
is working on a reply...