[xslt] xsltproc error "xsltApplyOneTemplate: attribute-set was not compiled"




Hi all

	I am getting this error:

xsltApplyOneTemplate: attribute-set was not compiled

for a simple syle sheet.  Can some one tell me what to do?


[20:21:26]opus::~ $ xsltproc --version
Using libxml 20510, libxslt 10033 and libexslt 722
xsltproc was compiled against libxml 20510, libxslt 10033 and libexslt 722
libxslt 10033 was compiled against libxml 20510
libexslt 722 was compiled against libxml 20510

[20:21:32]opus::~ $ uname -a
Linux opus 2.4.21-15.0.4.ELsmp #1 SMP Sat Jul 31 01:25:25 EDT 2004 i686
i686 i386 GNU/Linux
[20:21:38]opus::~ $

thanks,
Sudhakar.



Style sheet:


<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
        <xsl:output method="xml" />
        <xsl:template match="*">

                                        <xsl:attribute-set name="hello">
                                                 <xsl:attribute
name="font-size">12pt</xsl:attribute>
                                        </xsl:attribute-set>
                                        <xsl:element name="testing"
use-attribute-sets="hello">
                                                whats up?
                                        </xsl:element>
        </xsl:template>
</xsl:stylesheet>




XML file:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
        <xsl:output method="xml" />
        <xsl:template match="*">

                                        <xsl:attribute-set name="hello">
                                                 <xsl:attribute
name="font-size">12pt</xsl:attribute>
                                        </xsl:attribute-set>
                                        <xsl:element name="testing"
use-attribute-sets="hello">
                                                whats up?
                                        </xsl:element>
        </xsl:template>
</xsl:stylesheet>






Sudhakar Govindavajhala	                  Department of Computer Science
Graduate Student,                         Princeton University
Ph : (lab) +1 609 258 1763                   (office) +1 609 258 1798
               http://www.cs.princeton.edu/~sudhakar


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