David,
This would indeed leave the inner data alone.
Werner.
Laub, David wrote:
> Would this leave the inner data alone, or get rid of everything with a "ns0" namespace?
>
> e.g. given the following
>
> WordMLDoc
> ...
> <ns0:xyz>
> <GoodData1>blah</GoodData1>
> <GoodData2>blah</GoodData2>
> </ns0:xyz>
>
> I want to preserve GoodData1 & GoodData2 and only strip out the ns0: tags
>
> -----Original Message-----
> From: owner-xep-support@renderx.com [mailto:owner-xep-support@renderx.com] On Behalf Of Werner Donné
> Sent: Monday, April 11, 2005 9:57 AM
> To: xep-support@renderx.com
> Cc: heuer@renderx.com
> Subject: Re: [xep-support] Microsoft WordprocessingML to XSL FO Converter
>
>
> Hi David,
>
> You can preprocess with a style sheet as follows:
>
> <?xml version="1.0"?>
> <xsl:transform version="1.0"
> xmlns:ns0="..."
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
> <xsl:output method="xml"
> indent="no"
> version="1.0"
> encoding="UTF-8"
> omit-xml-declaration="yes"/>
>
> <xsl:template match="@*|node()">
> <xsl:copy>
> <xsl:apply-templates select="@*|node()"/>
> </xsl:copy>
> </xsl:template>
>
>
> <xsl:template match="ns0:*">
> <xsl:apply-templates/>
> </xsl:template>
>
> </xsl:transform>
>
> This will "look through" the foreign namespace.
>
> A similar template matching any non-Microsoft namespace could also be added to the WordML to XSL-FO style sheet, or in this one for that matter.
>
> Regards,
>
> Werner.
>
> Laub, David wrote:
>
>>I note that the RenderX free WordML-> fo stylesheet works great on
>>WordML documents created from scratch - BUT when I create a WordML
>>document/template around an existing XML file (using the WordML SDK
>>stylesheet inference tool), the resulting WordML file preserves these
>>existing XML tags (a good thing) within a namespace (typically named
>>ns0:xyz) - unless I strip out the embedded namespace tags (by either
>>manually removing then, or saving the file to rtf, then resaving it
>>back to xml), the free Renderx fo formatter will not work - is there a
>>more sophisticated tool you will provide to your paying customers?
>>
>>Thanks
>>
>>David Laub
>>
>>-------------------
>>(*) To unsubscribe, send a message with words 'unsubscribe
>>xep-support' in the body of the message to majordomo@renderx.com from
>>the address you are subscribed from.
>>(*) By using the Service, you expressly agree to these Terms of
>>Service http://www.renderx.com/tos.html
>>
>>
>
>
-- Werner Donné -- Re BVBA Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: werner.donne@re.be ------------------- (*) To unsubscribe, send a message with words 'unsubscribe xep-support' in the body of the message to majordomo@renderx.com from the address you are subscribed from. (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.htmlReceived on Tue Apr 12 01:34:31 2005
This archive was generated by hypermail 2.1.8 : Tue Apr 12 2005 - 01:34:32 PDT