Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] xsl:element will not create an output element, in any context

From: N David Brown <orieldave@-------------->
To:
Date: 6/1/2007 8:20:00 AM
David Carlisle wrote:

Oh is it a mime type issue what mime type are you serving your stylesheet
with? If you serve it with text/plain or text/html or some other non xml
type mozilla won't play.
I just checked, and my server is serving XSL and XML as application/xml, 
so that looks fine.



title must not be empty.

and there are more things missing in your stylesheet to make it XHTML, 
see my comments in my earlier post. But that shouldn't stop browsers 
from rendering your output, which is close enough to XHTML.
I know official XHTML should have more in, but as you've said yourself, 
it should be ok as-is...
You are not using your xhtml namespace. Furthermore, the namespace is 
not the correct namespace. See my earlier post. You are creating HTML, 
ok, but not XHTML.
Why is the namespace not correct? It looks ok to me, I just tested the 
link...



I realise I'm not using the namespace, but that shouldn't affect what's 
dumped to a file, so I want to leave that out atm, to simplify the test 
case =)
That was David's suggestion, not mine. I just re-emphasized ;)

I am wondering what you mean with "value-of's" or what you use to look 
at you core content. If you use PHP, and you use it from your browser, 
do you actually use View Source? I tried you example, and it rendered 
like a tree, the same that displays on David's site.
Well, as I've mentioned I'm looking at the transformed content dumped by 
my PHP; the browser doesn't come into it now, really, other than to 
refresh my page and re-run my transformation script.
This is no use. Once you do this, the output fails to be HTML. HTML 
still does not have an element <test> and will never have.
Aargh, I know that! lol. I don't care about producing strict (X)HTML at 
the minute, I just want to get the output to work, and surely with 
'method="xml"' some of this should be fine? Well clearly it should, 
since it works ok for you and David. I just tried David's link, and it 
displays fine for me (ul tree); this is so bizarre.
In addition to checking the content-type of your output that David 
suggests, try running it locally like I did, rename the output 
xxx.html and serve the html page. If you now still see nothing, it 
really is some configuration error of your Apache or other server. If 
you suddenly see the correct output, it is also a configuration error: 
likely the content-type in the HTTP headers (but that shouldn't stop 
the View Source from showing the actual content).
Ok, I will give that a shot shortly. Thanks for your suggestions again, 
guys. I'll keep you posted.



- Dave


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent