*SpaceGirl* wrote in alt.www.webmaster:
> Andrew Urquhart wrote:
<font color=green> >> <a style='text-decoration: underline;' href="http://groups.google.com/groups?selm=ytj5q8isfyh7%24.dlg%40usenet.andrewu.co.uk</font" target="_blank">http://groups.google.com/groups?selm=ytj5q8isfyh7%24.dlg%40usenet.andr....co.uk&</a>>
>
> This isn't quite working :/
Does for me :/
> It appears that the rows aren't getting broken up correctly.
Rows are currently being terminated with \r\n so they should be
> If I grab the source HTML from the results webpage and paste it into
> XMLSpy and run the XSTL the results seem to generate fine.
Same here (assuming you've added xmlns="http://www.w3.org/1999/xhtml" to
the html element)
> If I then copy that into a CSV file and have Excel load it, it
> complains that the data is incomplete, and dumps the output onto a
> single row.
I don't have Excel, only OpenOffice.org. If I copy the result into
Textpad and save it as CSV, OOo opens it just fine - it auto-detects the
rows and columns automatically with no user intervention. If someone
with Excel wants to check if Excel barfs on it here's the CSV file I
just saved from the transformation:
<a style='text-decoration: underline;' href="http://andrewu.co.uk/temp/spacegirl/data.csv" target="_blank">http://andrewu.co.uk/temp/spacegirl/data.csv</a>
> When I actually let the XSLT run on our application I get a
> zero-length output, but no errors are logged by Tomcat. I have no
> idea why it wont run.
You're likely using Saxon or another XSLT processor on a Java-based
system rather than MSXML! Different processors do different things
unfortunately, especially with bugs.
> Our application used to generate the output fine, but since we applied
> a new front end it stopped - however I cant tell if the fault is
> something new in the app, or the XSLT isn't working right... we've
> got a customer breathing down our neck and running around in circles
> here.
I don't get paid enough! Bah, OK, I'll try and install Saxon and test it
that way...
--
Andrew Urquhart
- FAQ: <a style='text-decoration: underline;' href="http://www.aww-faq.org/" target="_blank">http://www.aww-faq.org/</a>
- Archive: <a style='text-decoration: underline;' href="http://groups.google.com/groups?group=alt.www.webmaster" target="_blank">http://groups.google.com/groups?group=alt.www.webmaster</a>
- Contact me: <a style='text-decoration: underline;' href="http://andrewu.co.uk/contact/" target="_blank">http://andrewu.co.uk/contact/</a><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: XSLT genius required