Subject: [xsl] Namespace issue, possibly FAQ From: "Michael Semcheski" <mhs-list@xxxxxxxxx> Date: Tue, 25 Feb 2003 14:36:30 -0500 |
Hi all, I have an XML document which I am trying to transform (and don't we all). The document begins with the root: <?xml version="1.0"?> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40"> <Styles> <Style ss:ID="Default" ss:Name="Normal"> <Alignment ss:Vertical="Bottom"/> <Borders/> <Font/> <Interior/> <NumberFormat/> <Protection/> </Style> (This is an excel spreadsheet saved as XML, so I omitted certain parts rom in between the root and Styles elements). I have the following stylesheet root in my XSLT file -- <?xml version="1.0"?> <xsl:stylesheet xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" version="1.0" > I can get the correct elements with tags like: <xsl:template match="/"> <xsl:apply-templates select="ss:Workbook"/> </xsl:template> But I can't figure out a way to get the "ss:" out from in front of basically every I am trying to touch. It's a pretty big file, and a pretty complicated transform, and it only makes it more complicated with the "ss:". So the question, I guess, is how can I avoid putting that prefix in front of all of my elements? ------------------------------ Michael H. Semcheski Developer, Livewire Media XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Formatting numbers, michael . h . kay | Thread | [xsl] Get value from external file, Anders Svensson |
RE: [xsl] xpath question, getting l, Roger Glover | Date | [xsl] Re: Re: Re: Can one _generate, Dimitre Novatchev |
Month |