Hi all

i just start with xslt
my goal is to adapt an xslt designed for OOo1 to also handle OOo2
It is an ooo to docbook filter
http://www.indesko.com/sites/en/downloads/ooo2dbk/view


I want to have only one file
I managed to have a variable telling me the xml is from OOo1 or OOo2 so the stylesheet can be adapt

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 ? I know this is not a specific OOo question so please forgive me and feel free to redirect me

thanks in advance

Laurent

--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004

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

Reply via email to