On 3/27/06, Laurent Godard <[EMAIL PROTECTED]> wrote:

> But i have now a problem on xmlns defintion
>
> for OOo1
> <xsl:stylesheet version="1.0"
>    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:office="http://openoffice.org/2000/office"/>
>
> for OOo2
> <xsl:stylesheet version="1.0"
>    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0">
>
> What is the best way to handle xmlns:office uri depending on the
> procesed xml file ?

Declare separate prefixes:

xmlns:office1= ...
xmlns:office2= ...

You can then have templates that match either:

<xsl:template match="office1:foo|office2:bar">
...

> I know this is not a specific OOo question so please forgive me and feel
> free to redirect me

The xsl list is a great place for this.

Bruce

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to