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: Thu, 16 Feb 2023 23:19:28 -0000 |
Oh! And <xsl:template match="adrRecord/*[not(*)]"> * Chris From: Chris Papademetrious christopher.papademetrious@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Thursday, February 16, 2023 6:18 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Followup question: was Re: [xsl] XSLT to populate a SAML AttributeStatement from an XML Hi Jim, Try this: <xsl:template match="*[not(*)][parent::adrRecord]"> When you stack predicates (the [b&] thingies), they become AND conditions because each filters the sequence as evaluation processes the predicates in rightward order. These might also work (not tested): <xsl:template match="*[not(*) and local-name(..)='adrRecord']"> <xsl:template match="*[not(*) and parent:: adrRecord]"> <xsl:template match="*[not(*)][parent:: adrRecord]"> - Chris From: ohaya ohaya@xxxxxxxxx<mailto:ohaya@xxxxxxxxx> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx<mailto:xsl-list-service@xxxxxxxxxxxx rytech.com>> Sent: Thursday, February 16, 2023 6:10 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx<mailto:xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Cc: ohaya@xxxxxxxxx<mailto:ohaya@xxxxxxxxx> Subject: Re: Followup question: was Re: [xsl] XSLT to populate a SAML AttributeStatement from an XML Hi,
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Followup question: was Re: [xsl, Chris Papademetrious | Thread | Re: Followup question: was Re: [xsl, Liam R. E. Quin liam |
Re: Followup question: was Re: [xsl, Chris Papademetrious | Date | Re: Followup question: was Re: [xsl, Liam R. E. Quin liam |
Month |