[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: "Scott Trenda" <Scott.Trenda@xxxxxxxx>
Date: Thu, 29 May 2008 13:05:27 -0500
RE:  stylesheet problem - X3D XSLT
Florent said this already, but you've put an <ImageTexture> element
between the element opening and <xsl:attribute>. Did you mean to put
that attribute on the <ImageTexture> element? You've already set the
"url" attribute on that element through an attribute value template, but
that seems to make the most sense. In any case, <xsl:attribute>
statements have to come before any child elements or text content is
created within the element.

~ Scott

-----Original Message-----
From: j milo taylor [mailto:milo@xxxxxxxxxx]
Sent: Thursday, May 29, 2008 9:05 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  stylesheet problem - X3D XSLT

I'm using Netbeans to put together a project. Mysql - XML - XSLT to X3D

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.

Here's the stylesheet:

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0"
   <xsl:output media-type="model/x3d=xml"
method="xml" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
   <xsl:template match="/">
       <X3D profile="Immersive">&#10;



   <xsl:template match="artists">
           <xsl:for-each select="artist">

                       <Transform  translation='.8 4 1'>

name="translation"><xsl:value-of select="(position() - 1) * 6"/>

<xsl:template match="Artist_Image">
       <Shape containerField='children'>
         <xsl:for-each select="Artist_Image">

                        <Appearance containerField='appearance'>
                                <ImageTexture containerField='texture'
url='"http://localhost/images/artists/Ayers/jpg"'/><!-- what should the
default value be here?-->
name="url"><xsl:value-of select="Artist_Image"/> <!--here is the

                      <Material containerField='material'
ambientIntensity='0.200' shininess='0.200' diffuseColor='1 .50196 0'/>
                     <Box containerField='geometry' size='5 5 0.2'/>


And here the XML that is transformed:
<?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet type="text/xsl"



       <Artist_First_Name>Carl Micheal</Artist_First_Name>
       <Artist_Second_Name>von Hausswolff</Artist_Second_Name>



Any help/ideas would be really great.


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.