This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: SystemId Unknown?
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@virbus.de
www.virbus.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list