
I have to generate a set of IDs in my XSL-FO file, and have done so. However, I get a complaint from Oxygen that: <fo:block " id="1-2">.... E [Xerces] cvc-datatype-valid.1.2.1: '1' is not a valid value for 'NCName'. My programs seem to work, and I do not understand why I am getting this complaint. I thought digits were valid. What is wrong? Mark

On 1/10/10 1:15 PM, "Mark Wilson" <mark@knihtisk.org> wrote:
I have to generate a set of IDs in my XSL-FO file, and have done so. However, I get a complaint from Oxygen that:
<fo:block " id="1-2">.... E [Xerces] cvc-datatype-valid.1.2.1: '1' is not a valid value for 'NCName'.
My programs seem to work, and I do not understand why I am getting this complaint. I thought digits were valid. What is wrong? Mark
XML IDs must start with a "name start character", e.g., a letter. Numbers are not valid name start characters. FO engines that don't validate the FO document won't care, but engines that do will. Cheers, E. -- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 610.631.6770 www.reallysi.com www.rsuitecms.com

Thanks to everyone for quick and clear responses. I'll prefix a letter to the IDs. Regards, Mark -------------------------------------------------- From: "Eliot Kimber" <ekimber@reallysi.com> Sent: Sunday, January 10, 2010 11:20 AM To: "Mark Wilson" <mark@knihtisk.org>; "Oxygen User" <oxygen-user@oxygenxml.com> Subject: Re: [oXygen-user] NCName not valid
On 1/10/10 1:15 PM, "Mark Wilson" <mark@knihtisk.org> wrote:
I have to generate a set of IDs in my XSL-FO file, and have done so. However, I get a complaint from Oxygen that:
<fo:block " id="1-2">.... E [Xerces] cvc-datatype-valid.1.2.1: '1' is not a valid value for 'NCName'.
My programs seem to work, and I do not understand why I am getting this complaint. I thought digits were valid. What is wrong? Mark
XML IDs must start with a "name start character", e.g., a letter. Numbers are not valid name start characters.
FO engines that don't validate the FO document won't care, but engines that do will.
Cheers,
E.
-- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 610.631.6770 www.reallysi.com www.rsuitecms.com

Hi Mark, IDs are defined as NCName and they cannot start with digits. For details see http://www.w3.org/TR/REC-xml-names/#NT-NCName Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Mark Wilson wrote:
I have to generate a set of IDs in my XSL-FO file, and have done so. However, I get a complaint from Oxygen that:
<fo:block " id="1-2">.... E [Xerces] cvc-datatype-valid.1.2.1: '1' is not a valid value for 'NCName'.
My programs seem to work, and I do not understand why I am getting this complaint. I thought digits were valid. What is wrong? Mark
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (3)
-
Eliot Kimber
-
George Cristian Bina
-
Mark Wilson