Fwd: XMLSecTool validateSchema states ID is not a valid value for 'NCName' using MDA 0.7

Dan McLaughlin dmclaughlin at tech-consortium.com
Thu Apr 11 21:04:53 EDT 2013


Hi Chad,

I'm trying to use the new version of MDA which includes your fix for a
bug that I opened…

https://issues.shibboleth.net/jira/browse/MDA-58?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab

I'm seeing that the new stage does add the ID, but when I run the
metadata through xmlsectool.sh --validateSchema --schemaDirectory
/tmp/mda/xsd/ --inFile /tmp/mda/federation/federation-metadata.xml

I get the following error stating the ID is not valid for NCName.


ERROR XmlSecTool - Invalid XML schema files, unable to validate XML
org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1:
'031ce108-b893-4b5a-9f83-bded6eebb46d' is not a valid value for
'NCName'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source) ~[na:na]
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) ~[na:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[na:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[na:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[na:na]
at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
Source) ~[na:na]
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown
Source) ~[na:na]
at org.apache.xerces.impl.xs.XMLSchemaValidator.processOneAttribute(Unknown
Source) ~[na:na]
at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown
Source) ~[na:na]
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
Source) ~[na:na]
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
Source) ~[na:na]
at org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown
Source) ~[na:na]
at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown
Source) ~[na:na]
at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown
Source) ~[na:na]
at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown
Source) ~[na:na]
at javax.xml.validation.Validator.validate(Unknown Source) ~[na:1.4.01]
at edu.internet2.middleware.security.XmlSecTool.schemaValidate(XmlSecTool.java:349)
[xmlsectool-1.1.5.jar:na]
at edu.internet2.middleware.security.XmlSecTool.main(XmlSecTool.java:148)
[xmlsectool-1.1.5.jar:na]

The ID xsd:ID field, which is basically an NCName, which must start
with a Letter (or an underscore "_" ), but the value you generate
starts with a Digit.

See: http://www.w3.org/TR/xmlschema-2/#ID
And: http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName


--

Thanks,

Dan


More information about the dev mailing list