[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: My brain is hurting
Hi Chris,
Could you be more precise? I'm confused about the way you are using <usegroup> (which doesn't look
like a valid element to me? And why should parameter value 'default' result only in 'chris'?
Cheers,
Geert
Chris Picton wrote:
Hi all
I have the following xml structure. To paraphrase quickly, I have users
and groups, each user or group has a parent group defined - except for
group 'default', which is always top of the tree. I have settings for
each user and group. Each settings node can be specified as 'use
settings from parent group', or 'specify my own settings'.
<root>
<settings>
<user name="chris">
<usegroup="1" />
</user>
<user name="phil">
<usegroup="0" />
...
</user>
<group name="default">
<usegroup="0" />
...
</group>
<group name="othergroup">
<usegroup="1" />
</group>
</settings>
<users>
<user name="chris" parent="othergroup">
...
</user>
<user name="phil" parent="othergroup">
...
</user>
<group name="default" parent="">
...
</group>
<group name="othergroup" parent="default">
...
</group>
</users>
</root>
I am trying to write a transform which, when given a group name as a
parameter, will output a list of usernames which will use that group's
settings.
Example, if parameter 'group' == default,
it will output "chris" in the above example
However, my xsl skills are nowhere near good enough for this.
Does anyone have ideas for me?
Regards
Chris
--
Geert.Josten@xxxxxxxxxxx
IT-consultant at Daidalos BV, Zoetermeer (NL)
http://www.daidalos.nl/
tel:+31-(0)79-3316961
fax:+31-(0)79-3316464
GPG: 1024D/12DEBB50
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|