[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SystemId Unknown?

Subject: Re: SystemId Unknown?
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Fri, 31 May 2002 21:46:43 +0200
systemid unknown xslt
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.