Subject: Re: SystemId Unknown?
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Fri, 31 May 2002 21:46:43 +0200
|
Hello Dean,
I know these errors, it must be Xalan. The error means, that "class" *is*
the illegal attribute. I can not say that there is really an error in your
code, but you are creating the class-attribute multiple times (one for each
Data). I think you can completely remove <xsl:for-each select="Data"/> (or
let it start after the <xsl:choose> for your class-attribute), maybe this
already solves the problem. Then you can improve your code:
<xsl:for-each select="Record">
<tr class="rowEven">
<xsl:if test="position() mod 2 = 1">
<xsl:attribute name="class">rowOdd</xsl:attribute>
</xsl:if>
<xsl:for-each select="Data">
<!-- the rest of your code -->
</xsl:for-each>
</tr>
</xsl:for-each>
Does it help?
Regards,
Joerg
Dean Saxe wrote:
I am receiving the following error from one of my transformations:
SystemId Unknown; Line 271; Column 40; class has an illegal attribute: {1}
SystemId Unknown; Line 268; Column 40; class has an illegal attribute: {1}
The XSLT at these lines is as follows:
[...]
<xsl:for-each select="Record">
<tr>
<xsl:for-each select="Data">
<xsl:choose>
<xsl:when
test="((count(../preceding-sibling::Record) mod 2) != 0)">
<!-- line 268 --> <xsl:attribute
name="class">rowEven</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<!-- line 271 --> <xsl:attribute
name="class">rowOdd</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
[...]
I cannot for the life of me figure out why I am receiving these errors.
Similar code in a different stylesheet works flawlessly. The errors are not
fatal, the transformation completes and the output is exactly what I desire,
however, the endless stream of errors in the Weblogic console are becoming
burdensome. Any advice on how to avoid this error is greatly appreciated!
-dhs
Dean H. Saxe
--
System Development
VIRBUS AG
Fon +49(0)341-979-7419
Fax +49(0)341-979-7409
joerg.heinicke@xxxxxxxxx
www.virbus.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- SystemId Unknown?
- Dean Saxe - Fri, 31 May 2002 15:34:22 -0400 (EDT)
- Joerg Heinicke - Fri, 31 May 2002 15:57:23 -0400 (EDT) <=
- <Possible follow-ups>
- Dean Saxe - Fri, 31 May 2002 16:14:11 -0400 (EDT)
- Dean Saxe - Fri, 31 May 2002 17:09:22 -0400 (EDT)
|
|