[xsl] Namespace issue, possibly FAQ

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"
  <Style ss:ID="Default" ss:Name="Normal">
   <Alignment ss:Vertical="Bottom"/>
(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"?>

I can get the correct elements with tags like:
	<xsl:template match="/">
		<xsl:apply-templates select="ss:Workbook"/>

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