On 09/09/05, Guillon Benoit <[EMAIL PROTECTED]> wrote: > > Thanks for your reply. The element I want to match is the root element > of the content.xml file in a sxw document: office:document-content. > > In the input file all the namespaces are well declared: > > <office:document-content > xmlns:office="http://openoffice.org/2000/office"
> > and I declare the one I use in my XSL stylesheet: > > <xsl:stylesheet > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:text="http://openoffice.org/2000/text" > xmlns:meta="http://openoffice.org/2000/meta" > xmlns:table="http://openoffice.org/2000/table" > xmlns:office="http://openoffice.org/2000/office" > xmlns:dc="http://purl.org/dc/elements/1.1/" > xmlns:draw="http://openoffice.org/2000/drawing" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:style="http://openoffice.org/2000/style" > version="1.0"> Oh look! The ofice prefix (ns http://openoffice.org/2000/office) isn't declared in the xslt. There's the problem assuming document-content has the office:prefix <xsl:value-of select="count(/office:document-content/*)"/> will return the actual count? which is probably one, since it is the root of the document? > > I really think that the problem is not related to the XSL because it > works fine outside Openoffice, with different . Different to what? A compliant xslt engine shouldn't match. It seems that inside > Openoffice the parser used to parse my stylesheet or the input file - or > both - is not namespace aware Since office uses namespaces so widely, I think that unlikely? HTH -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
