xsl-list
[Top] [All Lists]

[xsl] X3D XSLT

2008-06-02 12:17:12
Hi,

This is still not compiling. I have followed Dean's advice, but Netbeans now throws up (2 ?) errors

null
Could not compile stylesheet
Could not compile stylesheet
XML validation finished.


From this code:

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> <xsl:output media-type="model/x3d=xml" doctype-system="http://www.web3d.org/specifications/x3d-3.2.dtd"; method="xml" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
   <xsl:template match="/">
       <X3D profile="Immersive">&#10;
           <head>&#10;<title/>
           </head>
           <Scene>
<xsl:apply-templates/>

           </Scene>
       </X3D>

   </xsl:template>

   <xsl:template match="artists">
       <Group>
           <xsl:for-each select="artist">
<Transform translation='.8 4 1'>

<xsl:attribute name="translation"><xsl:value-of select="(position() - 1) * 6"/>
                           </xsl:attribute>
</Transform> <xsl:template match="Artist_Image"><!-- something still not right from here -->
       <Shape containerField='children'>
         <xsl:for-each select="Artist_Image">

                        <Appearance containerField='appearance'>
                                <ImageTexture containerField='texture'>
<xsl:attribute name="url"><xsl:value-of select="Artist_Image"/>
                       </xsl:attribute></ImageTexture>
<Material containerField='material' ambientIntensity='0.200' shininess='0.200' diffuseColor='1 .50196 0'/>
                     </Appearance>
                     <Box containerField='geometry' size='5 5 0.2'/>
        </xsl:for-each>

</Shape></xsl:template><!-- until here?-->

</xsl:for-each>
</Group>
</xsl:template>
</xsl:stylesheet>


Anyone got any thoughts about this?

Regards
Milo

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>