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: Thu, 16 Feb 2023 23:17:50 -0000
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 <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, February 16, 2023 6:10 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,

Current Thread