0 users online. Create an account or sign in to join them.Users
Applying .xsl and CSS issue
This is an open discussion with 5 replies, filed under Troubleshooting.
Search
What's the output markup look like?
@czheng - Do you mean doing a view source on the page?
It is
Looks right:
<ul>
<li><a href="">Manual Item</a></li>
<li><a href="">6 Colors</a></li>
<li><a href="">1m Domains</a></li>
</ul>
Does not look right:
<ul>
<li><a href="">6 Colors</a></li>
<li><a href="">1m Domains</a></li>
</ul>
I may be wrong, but is your template pointing at the right hierarchy in the tree?
Because your calling a template from within another template "proj/projects" isn't the apply-templates looking too far up the tree or too far down? http://pastie.org/2222240 I changed the pastie and removed the proj/projects in line 8.. see if that outputs what your after?
EDIT
Can you provide a pastie of your debug xml page? this way we can analyse your XML structure.
I still cannot figure out why this works if I create a manual entry first before reading from the data source for the rest.
Here is my debug: http://pastie.org/2316667
Are you sure this isn't a CSS issue? It looks like there's enough space for the "6" in "6 Colors" to float up next to the "Projects" heading, but that isn't the case for "Manual", which is why adding "Manual Item" makes it appear to work.
Perhaps you could post the full CSS/page source?
Create an account or sign in to comment.
I have some specific styling for my
<a href>and they work up until I apply a template to get other<a href>I want from a data source.Given the following .xsl: http://pastie.org/2215504
Given this code snippet: http://pastie.org/2215507
With the following CSS: http://pastie.org/2215511
This yields:
But what I really want is:
I can't get this without adding a manual
<a href>before the the data is applied from the data source like: http://pastie.org/2215550(Notice line 5 that I added)
I have even tried using
<xsl:text disable-output-escaping="yes">and manually writing out the<a href="">and still the same result.I am stumped. Does anyone see anything?