[oXygen-user] NCName not valid

Eliot Kimber
Sun Jan 10 13:20:05 CST 2010


On 1/10/10 1:15 PM, "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 

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




More information about the oXygen-user mailing list