You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/05/15 21:25:02 UTC
DO NOT REPLY [Bug 9127] New: -
Simple transform works, but emits error w/out parameters
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9127>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9127
Simple transform works, but emits error w/out parameters
Summary: Simple transform works, but emits error w/out parameters
Product: Xerces2-J
Version: 2.0.0
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Other
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: dmkarr@earthlink.net
I'm using version 2.3.1 of Xalan-J. That version choice wasn't available in the
"Version" box.
I have a simple XML file and a relatively simple transform. When I run the
transform on the command line, I see my desired XML output, but I also see the
following odd error message (this is pasted directly):
file:///C:/cygwin/home/dmkarr/java/strutstest/build/WEB-INF/test.xsl; Line 10;
Column 32; 2 has an illegal attribute: {1}
The entire stylesheet follows. Note that line 10 is the "xsl:attribute" element.
Again, the output produced by this transform appears to be correct. Outside of
this weird error message, I don't see anything wrong in my output.
--------------------------
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/web-app">
<xsl:apply-templates select="servlet"/>
</xsl:template>
<xsl:template match="*">
<xsl:for-each select="@*">
<xsl:attribute name="{.}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
--------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org