Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XSL problem XSL problemTo: NULL Date: 10/13/2008 10:51:00 PM Hi I'm trying to process the following xml-file. ******** <?xml version="1.0" encoding="utf-8"?> <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.test.com/file.xsd"> <title>Nice Title</title> </element> ********* with this xsl: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:template match="*"> </xsl:template> <xsl:template match="element"> <xsl:apply-templates/> </xsl:template> <xsl:template match="title"> <NUMBERS> <ENTRY> <TITLE> <xsl:value-of select="."/> </TITLE> </ENTRY> </NUMBERS> </xsl:template> </xsl:stylesheet> ***************************** This works if I manually remove the namespace in the xml called : xmlns="http://www.test.com/file.xsd" But, I can't control the incoming xml so I need a way to remove this information in the xsl. ************* It should generate the output: <?xml version="1.0" encoding="UTF-8"?> <NUMBERS> <ENTRY> <TITLE>Nice Title</TITLE> </ENTRY> </NUMBERS> Any of you experts having an idea ?? Regards Matemat | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
