xsl-list
[Top] [All Lists]

how to use namespaces with xsltproc

2003-01-25 01:31:03
I'm trying to extract from an OpenOffice content.xml file
the elements delimited by the <list:item> tag with the 
xsltproc program, but it gives the next error message:

error
xsltCompileStepPattern : no namespace bound to prefix list
compilation error: file ListForAll.xsl line 19 element template
xsltCompilePattern : failed to compile 'list:item'

Where can I learn about namespaces and what do I have to add
to my xsl stylesheet for performing that?

---xsl style sheet-------------------------------------

<xsl:stylesheet
  version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:template match="/">
  <html>
    <head>
      <title>Item List</title>
    </head>
    <body>
      <ul>
        <xsl:apply-templates/>
      </ul>
    </body>
  </html>
</xsl:template>

<xsl:template match="list:item">
  <li>
    <xsl:apply-templates/>
  </li>
</xsl:template>

</xsl:stylesheet>

-------------------------------------------------------

Thanks.

___________________________________
Pierre François <pf(_at_)arenberg(_dot_)cc>
Roemer Visscherstraat 46
1054 EZ Amsterdam (The Netherlands)
+31 20 616 58 46
 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>