[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: Fri, 21 Sep 2007 14:53:08 -0700 (PDT)
Re:  Processing Stylesheet with multiple namespaces
Thanks Joe

I plugged the stylesheet into C# code with
XslCompiledTransform call, but the result is still the
same. I'm left with "o:ole" attribute.

Then I plugged your stylesheet and got the same
result.

Not sure what's going on.

Regards,

Michael

------------- In reply to ----------------------

This seems to work:

<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()"/>
</w:pict>
</xsl:template>
<xsl:template match="w:OLEObject"/>
<xsl:template match="@o:ole"/>

or you may want:

<w:pict>
<xsl:apply-templates select="@*|node()"/>
</w:pict>
for w:pict depending on whether or not you want the
attributes to
 remain.

That was run with System.Xml.Xsl.XslCompiledTransform
in Microsoft.Net 
framework.
(There's no point in trying to exclude namespace
prefixes if the
 namespaces 
themselves are needed in the output document.)

Joe
http://joe.fawcett.name


       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

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.