You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2004/07/06 06:20:42 UTC
DO NOT REPLY [Bug 29926] New: -
SystemId Unknown; Line #-1; Column #-1; XSLT Error
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29926>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29926
SystemId Unknown; Line #-1; Column #-1; XSLT Error
Summary: SystemId Unknown; Line #-1; Column #-1; XSLT Error
Product: XalanJ2
Version: 2.6
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: org.apache.xalan
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: harshap@bigpond.net.au
When a XSL stylesheet is been transformed an error is given.
The command executed is
java org.apache.xalan.xslt.Process -in PeopleAtts.xml -xsl AttsToElems.xsl
-out Elems.xml
The error given is
SystemId Unknown; Line #-1; Column #-1; XSLT Error
(javax.xml.transform.TransformerConfigurationException):
javax.xml.transform.TransformerConfigurationException:
transform.TransformerConfigurationException: xsl:element is not allowed in
this position in the stylesheet!
The XML document that is to be transformed is:
<?xml version="1.0"?>
<people>
<name first="John" middle="Fitzgerald Johansen" last="Doe"/>
<name first="Franklin" middle="D." last="Neuman"/>
<name first="Alfred" middle="E." last="Public"/>
<name first="John" middle="Q." last="Public"/>
<name first="Jane" middle="" last="Doe"/>
</people>
The XSLT stylesheet used is:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:template match="/">
<people>
<xsl:apply-templates select="people/name"/>
</people>
</xsl:template>
<xsl:template match="name">
<name>
<xsl:apply-templates select="@*"/>
</name>
</xsl:template>
<xsl:template match="@*"/>
<xsl:element name="{local-name()}"><xsl:value-of select="."/></xsl:element>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org