Re: XSLT + java: namespace problem
Dave Pawson <[email protected]> Thu, 8 Sep 2005 19:07:41 +0100
| Newsgroups | gmane.comp.openoffice.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
On 08/09/05, Guillon Benoit <[email protected]> wrote: > Hello, >=20 > I'm having troubles with the xmerge framework when I try to export a sxw > document using an XSL stylesheet. When I start my Java application > outside OpenOffice everything works fine but when I use it as a filter > in OOo 1.1.4, the XPATH expressions do not match when I use namespaces > but match when I don't use namespaces. >=20 > Example: > <xsl:value-of select=3D"count(/document-content/*)"/> will return 0 > It must be a problem of XML parser configuration but I really don't know > where I can fix it. what namespace is the local-element 'document-content' in? Have you declared a namespace prefix for that namespace? No idea how you do it in java, but it's easy in XSLT. HTH --=20 Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk