I am a Spanish student that I am developping a Cocoon project. (I'm sorry, but my English is very poor)
I have various XML files relationated and for this example I use artistas.xml (contains information of artists) and canciones.xml (contains information of songs). I want to select one artist of the file, and I use a XSL stylesheet for select this artist:
<xsl:param name="artist"/>
<xsl:template match="artistas">
<xsl:if test="$artist">
<xsl:apply-templates select="//artista [EMAIL PROTECTED] = $artist]"/>
</xsl:if>
</xsl:template>
<xsl:template match="artista">
<!-- Here select the elements that I need for the presentation -->
</xsl:template>
In this moment I have the information, but something is relationed with canciones.xml wiht a XPointer:
<elmcancion>
<ident xlink:href=""/>
<titulo xlink:include href=""/>
</elmcancion>
Now, I want to use a transformer (Xinclude) for include the information.
Finally, I use other stylesheet XSL for present the information. The pipeline is:
<map:resource name="artCompCanc">
<map:generate src=""/>
<map:transform src="">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="use-browser-capabilities-db" value="true"/>
<map:transform type="xinclude"/>
<map:transform src="">
</map:transform>
<map:serialize/>
</map:resource>
<map:match pattern="FartCompCanc">
<map:call-resource="artCompCanc"/>
</map:match>
In conclusion: the first stylesheet does ok its function, but the Xinclude transformation no include the XPointer content, why???
Thank you for your atention
Localiza y ponte en contacto con tus antiguos compañeros de clase. Haz clic aquí y descubre MSN Compañeros. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]