xsl-list
[Top] [All Lists]

RE: [xsl] E [Xerces] Attribute value "1" of type ID must be an NCName when namespaces are enabled.

2009-08-13 07:18:36

The message means exactly what it says. For bizarre historical reasons that
few people remember, XML requires that an attribute value declared as being
of type ID has the same syntax as an XML name - so it cannot start with a
digit.

Regards,

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

-----Original Message-----
From: Manuel Souto Pico [mailto:manuel(_dot_)souto(_at_)star-group(_dot_)net] 
Sent: 13 August 2009 10:31
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] E [Xerces] Attribute value "1" of type ID must 
be an NCName when namespaces are enabled.

Hi all,

This might be more an XML-related issue than XSL-related, but 
it happens in a file that I produced with a XSL stylesheet.

Could you help me interpret this error (in the subject)? What 
could I do to make the document valid?

Thank you so much and have a nice day!

My (simplified) file is:

<?xml version="1.0" encoding="UTF-8"?>
<!--<!DOCTYPE martif
    PUBLIC "ISO 12200:1999A//DTD MARTIF core (DXFcdV04)//EN" 
"TBXcdv04.dtd">-->
<!DOCTYPE martif SYSTEM "TBXcoreStructV02.dtd"> <martif 
xml:lang="en" type="TBX">
    <martifHeader>
        <fileDesc>
            <sourceDesc>
                <p>Generated with TMX2TBX.xsl</p>
            </sourceDesc>
        </fileDesc>
        <encodingDesc>
            <p type="DCSName" />
        </encodingDesc>
    </martifHeader>
    <text>
        <body>
            <termEntry id="1">
                <langSet xml:lang="eng-us">
                    <tig>
                        <term>About Manage reference material</term>
                    </tig>
                </langSet>
                <langSet xml:lang="spa-es">
                    <tig>
                        <term>Acerca de la gestión del 
material de referencia</term>
                    </tig>
                </langSet>
            </termEntry>
        </body>
    </text>
</martif>

--
Manuel Souto Pico
Terminòleg / Responsable de servei tècnic 
manuel(_dot_)souto(_at_)star-group(_dot_)net 
<mailto:manuel(_dot_)souto(_at_)star-group(_dot_)net>

*STAR Servicios Lingüísticos*
C. Sardenya, 195-197 (baixos)
E-08013 Barcelona
Tel. +34 932 440 889
Fax: +34 932 471 273
http://www.star-spain.com
http://www.star-group.net <http://www.star-spain.com>

En cumplimiento con lo previsto en los artículos 21 y 22 de 
la Ley 34/2002, de 11 de julio, de Servicios de la Sociedad 
de Información y Comercio Electrónico (LSSI) y las 
disposiciones de la Ley Orgánica 15/1999, de 13 de diciembre 
de Protección de Datos de Carácter Personal
(LOPD) le informamos que procederemos al archivo y 
tratamiento de sus datos exclusivamente con fines de 
promoción de los productos y servicios ofrecidos por STAR 
Servicios Lingüísticos, S.L. Este mensaje, y en su caso, 
cualquier fichero anexo al mismo, puede contener información 
confidencial o legalmente protegida, siendo para uso 
exclusivo del destinatario. No hay renuncia a la 
confidencialidad o secreto profesional por cualquier 
transmisión defectuosa o errónea, y queda expresamente 
prohibida su divulgación, copia o distribución a terceros sin 
la autorización expresa de STAR Servicios Lingüísticos, S.L. 
Si ha recibido este mensaje por error, se ruega lo notifique 
a STAR Servicios Lingüísticos enviando un mensaje al 
remitente o al correo electrónico info(_at_)star-spain(_dot_)com y 
proceda inmediatamente al borrado del mensaje original y de 
todas sus copias. Gracias por su colaboración. Si desea más 
información sobre sus derechos en lo que respecta al 
tratamiento de sus datos de carácter personal, visite 
http://www.star-spain.com/es/inicio/lopd.php

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--