j milo taylor wrote:
Hi
I'm having problems with my stylesheet and Netbeans can't compile
it. I can't figure out what I'm doing wrong.
Netbeans gives me : line 34: Attribute 'url' outside of element.
<Appearance containerField='appearance'>
<ImageTexture
containerField='texture'
url='"http://localhost/images/artists/Ayers/jpg"'/><!-- what should
the
default value be here?-->
<xsl:attribute
name="url"><xsl:value-of select="Artist_Image"/> <!--here is the
problem?-->
</xsl:attribute>
You try to add an attribute to an element after having added content
to that element yet. That is an error. Use:
<Appearance ...>
<xsl:attribute name="url">
...
</xsl:attribute>
<ImageTexture .../>
instead of:
<Appearance ...>
<ImageTexture .../>
<xsl:attribute name="url">
...
</xsl:attribute>
Actually, you can also use an AVT in that case:
<Appearance url="{ ... }" ...>
<ImageTexture .../>
Regards,
--drkm
__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible
contre les messages non sollicités
http://mail.yahoo.fr Yahoo! Mail
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--