Subject: RE: [xsl] Attempting *not* to copy certain nodes From: 3rett 3onfield <brett@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 14 Jan 2004 21:31:27 -0500 |
</MapSecuritiesResult> </MapSecuritiesResponse> </soap-env:Body> </soap-env:Envelope>
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" exclude-result-prefixes="soap-env" version="1.0"> <xsl:output method="text" indent="yes" encoding="UTF-8"/>
<xsl:template match="/"> <xsl:apply-templates select="soap-env:Envelope/soap-env:Body/node()"/> </xsl:template>
<xsl:template match="*"> <!--synthesize element with the input name--> <xsl:element name="{name(.)}" namespace="{namespace-uri(.)}"> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:element> </xsl:template>
<xsl:template match="/"> <xsl:for-each select="MapSecuritiesResult/Security"> <xsl:if test="Outcome='Success'"> <xsl:copy-of select="Name"/>, <!-- --><xsl:copy-of select="Symbol"/>, <!-- --><xsl:copy-of select="CIK"/>, <!-- --><xsl:copy-of select="Cusip"/>, <!-- --><xsl:copy-of select="Market"/> <xsl:text> </xsl:text> </xsl:if> </xsl:for-each> </xsl:template> </xsl:stylesheet>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Attempting *not* to copy , John Meyer | Thread | RE: [xsl] Attempting *not* to copy , G. Ken Holman |
RE: Useful open-source XML/XSLT edi, 3rett 3onfield | Date | [xsl] Re: splitting a string at ,, Dimitre Novatchev |
Month |