123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cogadmin
- (C) Copyright IBM Corp. 2005, 2010
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <!--
- Generates a list of properties using the capability passed in and the metadata
- <root>
- <metadata>
- metadata from the server
- </metadata>
- <capability>
- the type of properties we want to get
- </capability>
- </root>
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2" xmlns:nemo="http://developer.cognos.com/nemo" exclude-result-prefixes="xsl wsrf-rp nemo">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
- <xsl:template match="/root">
- <wsrf-rp:GetMultipleResourceProperties>
- <xsl:for-each select="/root/capability">
- <xsl:variable name="capability" select="."/>
- <xsl:for-each select="/root/metadata/wsrf-rp:GetMultipleResourcePropertiesResponse/nemo:MetadataDescriptor/nemo:Property[nemo:Capability = string($capability) or not($capability)]">
- <wsrf-rp:ResourceProperty>
- <xsl:value-of select="nemo:Name"/>
- </wsrf-rp:ResourceProperty>
- </xsl:for-each>
- </xsl:for-each>
- </wsrf-rp:GetMultipleResourceProperties>
- </xsl:template>
- </xsl:stylesheet>
|