xsl-list
[Top] [All Lists]

[xsl] XML access control by custom ID

2010-03-08 13:42:27
Good day,

I am trying to create and use a separate filter XML file to use with a
source XML file. The filter XML will be a listing of my own ID's and
the rights that the target audience have on these elements. The idea
is this:

data.xml
<a some_attributes="xyz" my_id="1">
   123
</a>
<b attribute="xxx" my_id="2">
   ABC
</b>

access.xml
<administrator>
 <read>
    <1/>
    <2/>
</read>
 <write>
    <1/>
    <2/>
 </write>
</administrator>
<anybody>
 <read>
    <1/>
 </read>
</anybody>

accesscontrol.xsl using anybody as parameter
<the magic xslt that I'm looking for>

result.xml
<a access="read" some_attributes="xyz my_id="1">
   123
</a>

Thanks,
Jacobus

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--