You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Stephan Michels <st...@vern.chem.tu-berlin.de> on 2002/04/25 14:22:34 UTC
Namespaces and select
Hi,
I got some error if I use prefixes in the select attribute of
apply-templates:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="-//Vernetztes Studium - Chemie//DTD vscml 1.0//EN"
xmlns:tex="-//Vernetztes Studium - Chemie//grammar tex 1.0//EN">
<xsl:template match="tex:vsctex">
<section>
<xsl:apply-templates select="tex:secbody"/> <!-- Error -->
</section>
</xsl:template>
<xsl:template match="tex:secbody">
[...]
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: Extra illegal tokens: ':',
'secbody'
I use the 2.3.1 version. Can anyone tell me if I make an error, or does
the xalan not work correcly?
Thanx, Stephan Michels.
Re: Namespaces and select
Posted by Peter Davis <pe...@pdavis.cx>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 25 April 2002 05:22, Stephan Michels wrote:
> javax.xml.transform.TransformerConfigurationException:
> javax.xml.transform.TransformerException:
> javax.xml.transform.TransformerException: Extra illegal tokens: ':',
> 'secbody'
Nobody else has this problem, so check to make sure that your XML parser
supports namespaces. What XML parser are you using? Be aware that the
system CLASSPATH can sometimes mislead you into thinking you are using one
parser when really it uses another.
- --
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8yJBUNSZCJx7tYycRApu4AJ0XvoGWZQe0QJYd3OKQ3s8HpzCu9ACfZVvH
RwmirJcCa8IIjPXKSxIKZQg=
=EAtm
-----END PGP SIGNATURE-----