[xep-support] Microsoft WordprocessingML to XSL FO Converter

Werner Donné werner.donne at re.be
Tue Apr 12 00:49:45 PDT 2005


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 at renderx.com [mailto:owner-xep-support at renderx.com] On Behalf Of Werner Donné
> Sent: Monday, April 11, 2005 9:57 AM
> To: xep-support at renderx.com
> Cc: heuer at 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 at 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 at re.be
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at 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



More information about the Xep-support mailing list