ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "usha ladkani (JIRA)" <>
Subject [jira] [Created] (WSS-621) Problem with TemplateGenerator
Date Tue, 09 Jan 2018 13:58:00 GMT
usha ladkani created WSS-621:

             Summary: Problem with TemplateGenerator 
                 Key: WSS-621
             Project: WSS4J
          Issue Type: Bug
          Components: WSS4J Core
         Environment: we are using xss4j jar TemplateGenerator API to create xml
digital signature.

TemplateGenerator signatureGen = new

If we pass below document to this

<?xml version="1.0" encoding="UTF-8"?>
<sp:sample_file xmlns:sp="">

Below is the document we are getting

<ds:Reference URI="#sp:sample_file">?
<ds:Object Id="sp:sample_file">

which is not correct as the attribute Id is from type "ID" and this
should be a NCName. NCName are any Name without ":"

<complexType name="ObjectType" mixed="true">
<sequence minOccurs="0" maxOccurs="unbounded">
<any namespace="##any" processContents="lax"/>
<attribute name="Id" type="ID" use="optional"/>
<attribute name="MimeType" type="string" use="optional"/>
<!-- add a grep facet -->
<attribute name="Encoding" type="anyURI" use="optional"/>

Type ID :
The normalized value of the attribute is an NCName according to the
Namespaces in XML Recommendation which has the same version as the
document in which this attribute occurs (NCName for XML 1.0, or NCName
for XML 1.1).
[4]   NCName   ::=   Name - (Char* ':' Char*)/* An XML Name, minus the
":" */

(: is not allowed for object id)
            Reporter: usha ladkani
            Assignee: Colm O hEigeartaigh
            Priority: Blocker

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message