PTPC for Similar Set of repeating data RRS feed

  • Question

  • Hi All
    need your support to define PTPC.
    My requirement is like below.

    I have set of 2 information, say, page number, username. This set can occur either 3 or 4 or 5 or 8 times in my print job.

    In case if my print job as 3 sets of the data, then my data looks like, ( pageNumber 1, username A ), ( pageNumber 2, username B ), ( pageNumber 3, username C ).
    If my print job as 8 sets of the data, then I will have 8 such data as shown above.

    What I have tried is

    <psf:PrintCapabilities  … >
    <psf:Feature name="ns0000:UserData">
    <psf:Property name="psk:DisplayName">
    <psf:Value xsi:type="xsd:string">User Data</psf:Value>

    <psf:Property name="psf:SelectionType">
    <psf:Value xsi:type="xsd:QName">psk:PickOne</psf:Value>

    <psf:Option name="ns0000:3SetsOfUserData">
    <psf:Property name="psk:DisplayName">
    <psf:Value xsi:type="xsd:string">3SetsOfUserData</psf:Value>

    <psf:ScoredProperty name="ns0000:UserDataSet1">     <!—UserDataSet1 is expected to first out of three user data, ( PageNumber,UserName )  ie,  (8, John ) -->
    <psf:ParameterRef name="ns0000: UserDataSet1"/>
    <psf:ScoredProperty name="ns0000: UserDataSet2">
    <psf:ParameterRef name="ns0000: UserDataSet2"/>
    <psf:ScoredProperty name="ns0000: UserDataSet3">
    <psf:ParameterRef name="ns0000: UserDataSet3"/>


    <!—likewise option is repeated for 4SetsOfUserData, 5SetsOfUserData, 6SetsOfUserData, 8SetsOfUserData -- >

    </ psf:PrintCapabilities>

    How well can I write my PrintCapabilities such that my PC is small and also my PrintTicket is validated against my PrintCapabilities Schema irrespective of the set of data ( 3 or 4 or 5 or 8 ) entered in Print Job UI by the user.

    Any help on this is highly appreciated.
    Monday, May 27, 2019 2:44 PM