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 <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
On Thu, 2023-02-16 at 23:10 +0000, ohaya ohaya@xxxxxxxxx wrote:
> B 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,B https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations: B http://www.fromoldbooks.org
|