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

RE: X3D XSLT

Subject: RE: X3D XSLT
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 2 Jun 2008 20:51:46 +0100
RE:  X3D XSLT
You've already been told this is due to nested xsl:template elements.

Before you go any further you need to invest a few minutes into improving
your build/test environment so you can actually see the error messages
instead of throwing them away. All you're seeing is the final exception that
says compilation failed, without the messages that say what was actually
wrong. Netbeans is probably writing these to a log file somewhere. You can
either try to sort out your Netbeans configuration, or try to do
debugging/testing outside the Netbeans environment somewhere that's more
developer-friendly.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: j milo taylor [mailto:milo@xxxxxxxxxx] 
> Sent: 02 June 2008 20:17
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  X3D XSLT 
> 
> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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