Re: modifications of sx2ml for libxslt (without java)
Svante Schubert <[email protected]> Tue, 17 May 2005 17:32:27 +0200
| Newsgroups | gmane.comp.openoffice.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
Hi Marc-Olivier,
find some notes inside..
Marc-Olivier Bernard wrote:
>[...]
>
>2. delete any occurence of: namespace="{$namespace}"
>
>Reason: output shows some enoying embeded generated namespace, such as
><ns1:div xmlns:ns1="http://www.w3.org/1999/xhtml">...
>
>
You have to exchange
namespace="{$namespace}"
to
namespace="http://www.w3.org/1999/xhtml"
or add the attribute
xmlns="http://www.w3.org/1999/xhtml"
in the stylesheet variable.
This was a construct to reuse this code for WML, PALM HTML and XHTML.
You might report the issue you found to xsltlib.
>3. in export/common/body.xsl:
>
><xsl:template name="encode-string">
>(...)
>
><xsl:otherwise>
> <xsl:message terminate="no">ERROR: Function not found: java:java.net.URLEncoder.encode</xsl:message>
> <xsl:value-of select="$textToBeEncoded"/>
></xsl:otherwise>
>
>Thus terminate="no" instead of "yes" and add <xsl:value-of
>select="$textToBeEncoded"/>
>
>I suppose that incoming XML is UTF-8.
>
>
Yes, but not the character encoding was meant, more the string encoding.
Used for referencing child documents from the content table of a master
document by URLs.
You won't need it, as the transformation of master documents would work
only with Java and is not supported anyway.
I will add your proposed change (of 3.) to the exisiting issue and will
enhance the comment of
<xsl:template name="encode-string"> as well.
Best Regards,
Svante
--
Svante Schubert <[email protected]> Sun Microsystems
Software Engineer - StarOffice Sachsenfeld 4
http://www.sun.com/staroffice 20097 Hamburg, Germany