xsl-list
[Top] [All Lists]

Re: [xsl] Processing Stylesheet with multiple namespaces

2007-09-27 06:32:52
Michael

No problem, thought I was going mad :)

Joe


From: Michael Daniloff <mdanilof(_at_)yahoo(_dot_)com>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Processing Stylesheet with multiple namespaces
Date: Wed, 26 Sep 2007 20:11:43 -0700 (PDT)

Hey Joe.

I copied and pasted this stylesheet and ran it through
the Saxon and it worked.

My apologies, sorry for wasting your time.


Thanks for all your help.

Michael

----------- original message ------------------

Date: Tue, 25 Sep 2007 14:45:54 +0100
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
From: "Joe Fawcett" <joefawcett(_at_)hotmail(_dot_)com>
Subject: Re: [xsl] Processing Stylesheet with multiple
namespaces
Message-ID:
<BAY123-F30DC3E4E0D3A8376731E6ED9B70(_at_)phx(_dot_)gbl>



This was my suggested XSLT:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";

xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006";
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships";
xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math";
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing";
xmlns:w10="urn:schemas-microsoft
-com:office:word"
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main";
xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml";
exclude-result-prefixes="ve o r m v wp w10 w wne">
  <xsl:template match="@*|node()">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>

  <xsl:template match="w:object">
    <w:pict>
      <xsl:apply-templates select="@*|node()"/>
     <!-- or <xsl:apply-templates /> if you don't want
attributes -->
    </w:pict>
  </xsl:template>

  <xsl:template match="w:OLEObject"/>
  <xsl:template match="@o:ole"/>

</xsl:stylesheet>

It's odd that when I run it using .net
XslCompiledTransform the o:ole
 is
removed from the v:shape yet when you run it it isn't.

Joe
http://joe.fawcett.name



____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--