removing name space (qname i think)
Hi,
this is the output that I am getting:
<div xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:k="http://example.com/v1">9 to 12</div>
But all I want is: <div>9 to 10</div>
Its probably a simple thing. I tried googeling NameSpaces and QNames and anything else that I could think of but nothing helped. Could someone point me in the right direction?
As for the xml/xslt parser version - i don't know what it is because it is embedded in a device. the vendor claims its their own but I suspect it is some common one that comes with Linux because I see that the OS they are running on the device is Red Hat.
Thanks
Here is a sample of the xml and xsl:
-----------------------
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<Response xmlns="http://example.com/v1">
<Product>
<Name>Crash Force R/C Regenerator - 40.68 MHz </Name>
<AgeRange>9 to 12</AgeRange>
<Color>Red</Color>
</Product>
</Response>
</soap:Body>
</soap:Envelope>
-----------------------
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:k="http://example.com/v1">
<xsl:output method="html"/>
<xsl:template match="/soap:Envelope/soap:Body/k:Response/k:Product">
<div>
<xsl:value-of select="k:AgeRange"/>
</div>
</xsl:template>
</xsl:stylesheet>
---------------------
|