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: 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: XSLT to populate a SAML
AttributeStatement from an XML
Hi,
|