-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add utility to extract a list of members and their joining dates (if …
…known).
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- | ||
| extract_member_dates.xsl | ||
| XSL stylesheet that takes the UK federation members.xml file ane extracts | ||
| member names and joining dates in a format suitable for updating. | ||
| Author: Ian A. Young <ian@iay.org.uk> | ||
| --> | ||
| <xsl:stylesheet version="1.0" | ||
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
| xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" | ||
| xmlns:ukfm="http://ukfederation.org.uk/2007/01/members"> | ||
|
|
||
| <!-- Output is plain text --> | ||
| <xsl:output method="text"/> | ||
|
|
||
| <xsl:template match="ukfm:Member"> | ||
| <xsl:value-of select="ukfm:JoinDate"/> | ||
| <xsl:text>,"</xsl:text> | ||
| <xsl:value-of select="md:OrganizationName"/> | ||
| <xsl:text>"
</xsl:text> | ||
| </xsl:template> | ||
|
|
||
| <!-- | ||
| Junk any extraneous text nodes. | ||
| --> | ||
| <xsl:template match="text()"> | ||
| <!-- do nothing --> | ||
| </xsl:template> | ||
|
|
||
| </xsl:stylesheet> |