xsl-list
[Top] [All Lists]

Re: Saxon8 beginner questions

2005-07-21 14:30:12
Hi Michael,

Firstly, to get this to run I had to change the encoding in both files ...
When I set my editor's (SciTE) encoding for the new file to utf-8,
(or to 8-bit), then paste will convert the data on the fly. Moreover 
the new file will default to the encoding of the previous tab. For the
mail this means I cannot see what's the encoding there, I just get
what I asked for (tested). So how can I make your work easier?

In one of your answers you mentioned "Up-conversion using XSLT 2.0" at
http://www.idealliance.org/proceedings/xml04/papers/111/mhk-paper.html
"... up-conversion applications are those where the input doesn't have 
explicit structure, but rather has structure that is implicit in the text, and 
therefore they need good text processing capability." Its exactly what I'm
looking for.

Thank you for that paper and the explanations you gave here,
Manfred

2005/7/20, Michael Kay <mike(_at_)saxonica(_dot_)com>:
Firstly, to get this to run I had to change the encoding in both files -
they may have started life as utf-8, but they were not in UTF-8 by the time
they appeared in my email.

When you use the html output method, Saxon will insert a <meta> element as
part of the HTML <head> element. However, it won't do that if there isn't an
HTML <head> element. That's the case here, because your <head> element is
actually in the XHTML namespace, which the html output method doesn't
recognize. This also explains why the <br> element is being rendered the way
it is. You need to decide whether you are writing HTML or XHTML and then be
consistent.

Your call on current-date omitted the () so it was not recognized as a
function call (instead, Saxon looked for a child element called
current-date, and didn't find one).

The classpath is ignored by Java when you use the -jar option on the command
line. The message "Unable to access JAR file" means that you have mistyped
the path to the JAR file.

Michael Kay
http://www.saxonica.com/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>