Create parser pool interface and move current pool to an implementation of this inter...
[java-idp.git] / tests / data / attr-format.resolver.2.xml
1 <AttributeResolver xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mace:shibboleth:resolver:1.0" xsi:schemaLocation="urn:mace:shibboleth:resolver:1.0 shibboleth-resolver-1.0.xsd">
2
3   <!-- A fictious example of how GPA can be used to assign a distinction -->
4         <FormattedAttributeDefinition id="distinction" sourceName="gpa">
5                 <DataConnectorDependency requires="file"/>
6                 <Source format="java.text.DecimalFormat" pattern="0.00"/>
7                 <Target format="java.text.ChoiceFormat" 
8                         pattern="2&lt;none|2.99&lt;honors|3.49&lt;cum laude|3.79&lt;magna cum laude|4#president gold medal"/>
9         </FormattedAttributeDefinition>
10   
11   <CustomDataConnector id="file"
12     class="edu.internet2.middleware.shibboleth.aa.attrresolv.FileConnector"
13     datafile="data/attr-format.datafile.2"
14     ordered="true"/>
15
16 </AttributeResolver>