[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

how to use namespaces with xsltproc

Subject: how to use namespaces with xsltproc
From: Pierre François <pf@xxxxxxxxxxx>
Date: Sat, 25 Jan 2003 09:31:03 +0100
xsltproc namespaces
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@xxxxxxxxxxx>
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.