[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] My brain is hurting

Subject: Re: [xsl] My brain is hurting
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Fri, 14 Jan 2005 15:35:23 +0100

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'?


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'.

    <user name="chris">
      <usegroup="1" />
    <user name="phil">
      <usegroup="0" />
    <group name="default">
      <usegroup="0" />
    <group name="othergroup">
      <usegroup="1" />

    <user name="chris" parent="othergroup">
    <user name="phil" parent="othergroup">
    <group name="default" parent="">
    <group name="othergroup" parent="default">

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

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?



-- Geert.Josten@xxxxxxxxxxx IT-consultant at Daidalos BV, Zoetermeer (NL)


GPG: 1024D/12DEBB50

Current Thread