[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Processing Stylesheet with multiple namespaces

Subject: Re: Processing Stylesheet with multiple namespaces
From: Michael Daniloff <mdanilof@xxxxxxxxx>
Date: Wed, 26 Sep 2007 20:11:43 -0700 (PDT)
Re:  Processing Stylesheet with multiple namespaces
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@xxxxxxxxxxxxxxxxxxxxxx
From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx>
Subject: Re:  Processing Stylesheet with multiple
namespaces
Message-ID:
<BAY123-F30DC3E4E0D3A8376731E6ED9B70@xxxxxxx>



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 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.