Re: Followup question: was Re: [xsl] XSLT to populate a SAML AttributeStatement from an XML

Subject: Re: Followup question: was Re: [xsl] XSLT to populate a SAML AttributeStatement from an XML
From: "Chris Papademetrious christopher.papademetrious@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 17 Feb 2023 00:13:35 -0000
Hi Jim,

I think that would be either of these;

<xsl:template match="adrRecord//*[not(*)]">
<xsl:template match="*[not(*)][ancestor::adrRecord]">

Ibd prefer the first form in this case.


  *   Chris


From: ohaya ohaya@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, February 16, 2023 7:06 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Cc: ohaya@xxxxxxxxx
Subject: Re: Followup question: was Re: [xsl] XSLT to populate a SAML
AttributeStatement from an XML

Hi,

Arrgh :(!!

I think that my English translation was incorrect :(....

To be more correct, precise, I actually want all the elements that are not
JUST DIRECTLY under/in "adrRecord", but ANYWHERE under/in "adrRecord".

My apologies for that :(!!

I ran through the suggestions, and those only output the single element that
is directly under the "adrRecord", and then I realized that my explanation of
what was needed was imprecise....

The elements that I want to have output are all of these (but as
saml:Attribute under inside an saml:AttributeStatement:

<adrRecord>
<PN_ID>1111111</PN_ID>
<personnel>
<ADM_ORG_CD>urn:NORM:DEPT</ADM_ORG_CD>
<DOD_ASSOC_CD>urn:NORM:V01</DOD_ASSOC_CD>
</personnel>
<enterpriseUser>
<entUserRoles>a:b:c</entUserRoles>
</enterpriseUser>
</adrRecord>

Sorry about that :(!!!

Jim
On Thursday, February 16, 2023, 06:21:44 PM EST, Liam R. E. Quin
liam@xxxxxxxxxxxxxxxx<mailto:liam@xxxxxxxxxxxxxxxx>
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx<mailto:xsl-list-service@xxxxxxxxxxxx
rytech.com>> wrote:


On Thu, 2023-02-16 at 23:10 +0000, ohaya
ohaya@xxxxxxxxx<mailto:ohaya@xxxxxxxxx> wrote:
>  Hi,
>
> <xsl:template match="*[not(*)] and name(..)='adrRecord'">

You're missing a ]

<xsl:template match="*[not(*)] and (name(..) eq 'adrRecord')]">
is probably what i'd write.

or,
<xsl:template match="adrRecord/*[not(*)]"> ....


liam

--
Liam Quin,
https://www.delightfulcomputing.com/<https://urldefense.com/v3/__https:/www.d
elightfulcomputing.com/__;!!A4F2R9G_pg!abAFw4SFSTOAc1RAg5FJ7-f0y3y8SPNwIIbiQ3
QxJYHVaCTz5F4fUAC3wx05SfTK4umXL4VJufRDqG-fJAkpPB7l7Mdvujow22ZaCMlBTzeFv0_t5Y5
k$>
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:
http://www.fromoldbooks.org<https://urldefense.com/v3/__http:/www.fromoldbook
s.org__;!!A4F2R9G_pg!abAFw4SFSTOAc1RAg5FJ7-f0y3y8SPNwIIbiQ3QxJYHVaCTz5F4fUAC3
wx05SfTK4umXL4VJufRDqG-fJAkpPB7l7Mdvujow22ZaCMlBTzeFv1ehAuv5$>

XSL-List info and
archive<https://urldefense.com/v3/__http:/www.mulberrytech.com/xsl/xsl-list__
;!!A4F2R9G_pg!abAFw4SFSTOAc1RAg5FJ7-f0y3y8SPNwIIbiQ3QxJYHVaCTz5F4fUAC3wx05SfT
K4umXL4VJufRDqG-fJAkpPB7l7Mdvujow22ZaCMlBTzeFv0jRyPj-$>
EasyUnsubscribe<https://urldefense.com/v3/__http:/lists.mulberrytech.com/unsu
b/xsl-list/3380743__;!!A4F2R9G_pg!abAFw4SFSTOAc1RAg5FJ7-f0y3y8SPNwIIbiQ3QxJYH
VaCTz5F4fUAC3wx05SfTK4umXL4VJufRDqG-fJAkpPB7l7Mdvujow22ZaCMlBTzeFv4oxRf7n$>
(by email<>)

Current Thread