|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Attempting *not* to copy certain nodes
Date: Wed, 14 Jan 2004 13:12:47 -0500 From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Subject: Re: Attempting *not* to copy certain nodes Thank you for responding. According to RUWF ( http://www.xml.com/pub/a/tools/ruwf/check.html) the following is well formed: <?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"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
version="1.0">
<xsl:output method="text" indent="yes" encoding="UTF-8"/><xsl:template match="/"> <xsl:apply-templates select="soap:Envelope/soap: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> These are the errors I'm getting: IE 6: Reference to undeclared namespace prefix: 'soap'. Firebird 0.7: Error loading stylesheet: Parsing an XPath expression failed. Xerxes (via Treebeard -- it offers Saxon parsing as an option, but I can't seem to get it to work): Window::transform: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Prefix must resolve to a namespace: soap javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Prefix must resolve to a namespace: soap at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:946) at com.robrohan.treebeard.TreeTransform.transform(Unknown Source) at com.robrohan.fangorn.Ent.transform(Unknown Source) at com.robrohan.fangorn.Ent.access$1200(Unknown Source) at com.robrohan.fangorn.Ent$3.run(Unknown Source) Caused by: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Prefix must resolve to a namespace: soap at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:942) ... 4 more Once again, thank you for helping me. Brett XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








