[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Followup question: was Re: XSLT to populate a SAML

Subject: Re: Followup question: was Re: XSLT to populate a SAML AttributeStatement from an XML
From: "ohaya ohaya@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 17 Feb 2023 01:42:02 -0000
Re: Followup question: was Re:  XSLT to populate a SAML
 Hi,

PERFECT :)!

I had one attempt where I was close to your first suggestion, but I didn't
realized I needed the "//" after the "adrRecord".

Thanks,
Jim


     On Thursday, February 16, 2023, 07:13:54 PM EST, Chris Papademetrious
christopher.papademetrious@xxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

 #yiv8264245237 filtered {}#yiv8264245237 filtered {}#yiv8264245237 filtered
{}#yiv8264245237 filtered {}#yiv8264245237 p.yiv8264245237MsoNormal,
#yiv8264245237 li.yiv8264245237MsoNormal, #yiv8264245237
div.yiv8264245237MsoNormal
{margin:0in;font-size:11.0pt;font-family:sans-serif;}#yiv8264245237 a:link,
#yiv8264245237 span.yiv8264245237MsoHyperlink
{color:blue;text-decoration:underline;}#yiv8264245237
p.yiv8264245237MsoListParagraph, #yiv8264245237
li.yiv8264245237MsoListParagraph, #yiv8264245237
div.yiv8264245237MsoListParagraph
{margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;font-size
:11.0pt;font-family:sans-serif;}#yiv8264245237 span.yiv8264245237EmailStyle19
{font-family:sans-serif;color:windowtext;}#yiv8264245237
.yiv8264245237MsoChpDefault {font-family:sans-serif;}#yiv8264245237 filtered
{}#yiv8264245237 div.yiv8264245237WordSection1 {}#yiv8264245237 filtered
{}#yiv8264245237 filtered {}#yiv8264245237 filtered {}#yiv8264245237 filtered
{}#yiv8264245237 filtered {}#yiv8264245237 filtered {}#yiv8264245237 filtered
{}#yiv8264245237 filtered {}#yiv8264245237 filtered {}#yiv8264245237 filtered
{}#yiv8264245237 ol {margin-bottom:0in;}#yiv8264245237 ul
{margin-bottom:0in;}
Hi Jim,

 B 

I think that would be either of these;

 B 

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

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

 B 

Ibd prefer the first form in this case.

 B 

   - Chris

 B 

 B 

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

 B 

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.
Quinliam@xxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

 B 

 B 

On Thu, 2023-02-16 at 23:10 +0000, ohayaohaya@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



XSL-List info and archive

EasyUnsubscribe (by email)
XSL-List info and archiveEasyUnsubscribe(by email)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.