[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Iterating recursivly on a node changing the elemen

Subject: Re: Iterating recursivly on a node changing the element names
From: ML mail <mlnospam@xxxxxxxxx>
Date: Wed, 21 Nov 2007 07:21:13 -0800 (PST)
Re:  Iterating recursivly on a node changing the elemen
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.