| 
 
Subject: Re: [xsl] Iterating recursivly on a node changing the element  names From: ML mail <mlnospam@xxxxxxxxx> Date: Wed, 21 Nov 2007 07:21:13 -0800 (PST)  | 
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 Prdfix 'mml' wurde
nicht deklariert.'
(Fehler befindet sich an unbekannter
Stelle)XSLT-Fehler
(javax.xml.transform.TransformerException):
java.lang.RuntimeException: Der Namensbereich f|r
Prdfix '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@xxxxxxxxxxxx> 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 
> 
> 
      ____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Iterating recursivly on a, Florent Georges | Thread | Re: [xsl] Iterating recursivly on a, David Carlisle | 
| Re: [xsl] Iterating recursivly on a, David Carlisle | Date | Re: [xsl] Iterating recursivly on a, David Carlisle | 
| Month |