Subject: Re: [xsl] XSLT to populate a SAML AttributeStatement from an XML From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 18 Jan 2023 20:30:26 -0000 |
On 1/18/2023 9:06 PM, ohaya ohaya@xxxxxxxxx wrote: > > > FYI, if/when I can get this working, the XSLT will be running on a > Gateway machine. I just checked, and I *can* select "2.0" for the > XSLT, but I don't see "2.0+". The tokenize function is part of XPath 2.0 and therefore XSLT 2.0 so its use should be possible. XSLT 2.0+ is informal for XSLT 2.0 or 3.0 (or perhaps today the experimental XSLT 4.0 with e.g. Saxon PE or EE or CS 12). > > > On Wednesday, January 18, 2023, 01:56:13 PM EST, Michael Kay > <michaelkay90@xxxxxxxxx> wrote: > > > Are you able to use XSLT 2.0+ -- that gives you a tokenize() function > which makes this far easier. > > In 2.0 it's essentially > > <xsl:template match="personnel/*"> > B <saml:Attribute Name="{name()}" > NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"> > B B <xsl:for-each select="tokenize(.)"> > B B B <saml:AttributeValue > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xsi:type="xsd:string"><xsl:value-of select="."/></saml:AttributeValue>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT to populate a SAML A, ohaya ohaya@xxxxxxxx | Thread | Re: [xsl] XSLT to populate a SAML A, ohaya ohaya@xxxxxxxx |
Re: [xsl] XSLT to populate a SAML A, ohaya ohaya@xxxxxxxx | Date | Re: [xsl] XSLT to populate a SAML A, ohaya ohaya@xxxxxxxx |
Month |