Hello,

This seems like an extremely simple question, but I'm a newbie to XSL
and just can't figure it out.  I'm using Xalan 2.2.D10 and the Xerces
that comes with it.

I'm trying to use a stylesheet that has HTML attributes in it, like
this:

<xsl:template match="/">
  <body marginheight="5">text</body>
</xsl:template>

However, this results in a
javax.xml.transform.TransformerConfigurationException with no
explanatory message.  The very bottom of the stack printout is:

java.lang.NullPointerException
        at org.apache.xalan.processor.XSLTElementDef.getAttributeDef

If I remove the marginheight="5" everything magically works.

I've started out with the basic and am trying to get the SimpleTransform
example that comes with Xalan to transform with HTML code in the
stylesheet.

Use xsl:attribute works fine, but I have some existing stylesheets that
make extensive use of HTML attributes and it would really hurt to have
to rewrite them.

Any help is greatly appreciated.

Thanks,
Stephen

Reply via email to