Ok here are all the information...
the XSL file:
<xsl:stylesheet
xmlns:mml="http://www.w3.org/1998/Math/MathML"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="*[ancestor-or-self::start]">
<xsl:element name="mml:{local-name()}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
the XML file (will be replaced with a valid MathML xml
file, this one is just for testing purpose):
<start attr="myattr">
<two>
<three>3</three>
<four>4</four>
</two>
</start>
the command:
java org.apache.xalan.xslt.Process -in my.xml -xsl
my.xsl
and finally the error message:
FEHLER: 'Der Namensbereich für Präfix 'mml' wurde
nicht deklariert.'
(Fehler befindet sich an unbekannter
Stelle)XSLT-Fehler
(javax.xml.transform.TransformerException):
java.lang.RuntimeException: Der Namensbereich für
Präfix 'mml' wurde nicht deklariert.
Sorry the error message is in german, I can't remember
the locale env variable to be set to to change the
language to english...
Regards
--- Florent Georges <lists(_at_)fgeorges(_dot_)org> wrote:
ML mail wrote:
Xalan-J complains that the namespace prefix mml is
not
declared. Am I still missing something ?
That's a sympthom that have a lot of possible
causes. I'm affraid
you should post a Minimal Complete Sample that
reproduces the problem,
and the complete error message from your processor.
Regards,
--drkm
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez
vos mails vers Yahoo! Mail
--~------------------------------------------------------------------
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>
--~--
____________________________________________________________________________________
Be a better sports nut! Let your teams follow you
with Yahoo Mobile. Try it now.
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
--~------------------------------------------------------------------
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>
--~--