[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:

  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 sollicitis 
http://mail.yahoo.fr Yahoo! Mail 

Current Thread

Back To School Sale!

Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop.

Offer ends August 31, 2008.

Coupon Code
TRTY-C4JV-OFF

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-2007 All Rights Reserved.