I now get no "Attribute 'url' outside of element. null" error
however
<xsl:template match="Artist_Image">
This template is inside the <xsl:template match="artists"> so that's a
syntax error, you can't nest templates. But if you moved it out to the
top level then
<Shape containerField='children'>
<xsl:for-each select="Artist_Image">
<Appearance containerField='appearance'>
<xsl:attribute name="url">
<xsl:value-of select="Artist_Image"/>
so you are matching on Artist_Image, then iterating over all it's
Artist_Image children and for each such child using the value of its
Artist_Image child as the url.
So this will only select anything if your input has three nested levels
of Artist_Image
<Artist_Image>
<Artist_Image>
<Artist_Image>some url value</Artist_Image>
</Artist_Image>
</Artist_Image>
saxon gives the rather more helpful messages on your stylesheet
$ saxon9 -versionmsg:off 3d.xsl 3d.xsl
Error at xsl:template on line 31 of file:/c:/tmp/3d.xsl:
XTSE0010: An Transform element must not contain an xsl:template element
Error at xsl:template on line 31 of file:/c:/tmp/3d.xsl:
XTSE0010: Element must be used only at top level of stylesheet
Failed to compile stylesheet. 2 errors detected.
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________
--~------------------------------------------------------------------
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>
--~--