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

Re: stylesheet problem - X3D XSLT

Subject: Re: stylesheet problem - X3D XSLT
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Thu, 29 May 2008 16:48:19 +0200 (CEST)
Re:  stylesheet problem - X3D XSLT
j milo taylor wrote:


> 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">
       <ImageTexture .../>

instead of:

    <Appearance ...>
       <ImageTexture .../>
       <xsl:attribute name="url">

  Actually, you can also use an AVT in that case:

    <Appearance url="{ ... }" ...>
       <ImageTexture .../>



Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicitis 
http://mail.yahoo.fr Yahoo! Mail 

Current Thread


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.
First Name
Last Name
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.