Re: [xslt] When will XSTL 1.0 fully implemented?



OK, I know that this wasn't necessarily directed at me, but I figured
it was a good time to jump in :) I posted the following bug report a
little bit ago and got no response.  I'm having trouble getting
xsltproc to match namespaces correctly.

Take for example the following XML file:

<?xml version="1.0"?>

<document xmlns="http://my/namespace";>
  <name>Title of my document</name>
</document>

and the following stylesheet:

<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  xmlns:my="http://my/namespace";
  xmlns="http://www.w3.org/1999/xhtml";>
  
  <!-- Root Node -->
  <xsl:template match="/">
    <html>
      <head>
        <title><xsl:value-of select="my:document/my:name"/></title>
      </head>   
      <xsl:apply-templates/>
    </html>
  </xsl:template>
  
  <!-- Header and Body for the Document -->
  <xsl:template match="my:document">
    <body>
      <h1><xsl:value-of select="my:name"/></h1>
      <xsl:apply-templates/>
      <hr/>
    </body>
  </xsl:template>
  
  <!--Don't display name-->
  <xsl:template match="my:name">
  </xsl:template>

</xsl:stylesheet>


The file output by xsltproc has empty tags for <title> and <h1> where
they should contain the value of <name>.

Any help you can give me would be greatly appreciated.

--Brent


On Tue, Apr 10, 2001 at 06:40:07AM +0100, Matt Sergeant wrote:
> On Mon, 9 Apr 2001, Sze, Tak F wrote:
> 
> > Does anybody know when will XSLT 1.0 is fully
> > implemented in libxslt? There seems to be not
> > much activity on libxslt.
> 
> It seems to be pretty complete to me. Why don't you post a bug report with
> what you think is missing?
> 
> -- 
> <Matt/>
> 
>     /||    ** Founder and CTO  **  **   http://axkit.com/     **
>    //||    **  AxKit.com Ltd   **  ** XML Application Serving **
>   // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
>  // \\| // ** mod_perl news and resources: http://take23.org  **
>      \\//
>      //\\
>     //  \\
> 
> 
> _______________________________________________
> xslt mailing list
> xslt gnome org
> http://mail.gnome.org/mailman/listinfo/xslt

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

"The programmer, like the poet, works only slightly removed from pure
 thought-stuff.  He builds his castles in the air, from air, creating
 by exertion of the imagination.  Few media of creation are so
 flexible, so easy to polish and rework, so readily capable of
 realizing grand conceptual structures."
                        -- Frederick Brooks, Jr., The Mythical Man Month




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]