You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Alistair Young <al...@smo.uhi.ac.uk> on 2005/03/11 17:11:12 UTC

Resolving custom ID attributes

Is there a way to search a document to find custom ID attributes. e.g. 
if a consumer service wants to verify signatures from a producer 
service where the sig is based on a non "standard" ID attribute ("id" 
etc.), say "customID", can the consumer override any Xerces classes to 
look for know ID attributes to verify the signature?

Dom3 has setIdAttributeNS but you need dom3 for that!

thanks,
Alistair


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Resolving custom ID attributes

Posted by Alistair Young <al...@smo.uhi.ac.uk>.
thanks. I have an xsd that declares an attribute as type="ID", e.g.

<attribute name="customID" type="ID" use="required"/>

Could I load this schema into xerces to allow me to do this:

<data customID="dataTag">
...
XmlSignature.addDocument("#dataTag", transforms);

or does xmlsig work differently?

thanks,
Alistair

On 11 Mar 2005, at 16:13, Joseph Kesselman wrote:

> If the attribute is declared as an ID in the DTD, the normal operations
> will find it whether or not it is named "id".
>
> If it isn't, you get to implement your own solution...
>
> ______________________________________
> Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
> "The world changed profoundly and unpredictably the day Tim Berners Lee
> got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Resolving custom ID attributes

Posted by Joseph Kesselman <ke...@us.ibm.com>.
If the attribute is declared as an ID in the DTD, the normal operations
will find it whether or not it is named "id".

If it isn't, you get to implement your own solution...

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org