Forums de discussion

Help me plz !

thumbnail
suna suna suna, modifié il y a 13 années.

Help me plz !

Junior Member Publications: 38 Date d'inscription: 10/12/09 Publications récentes
Hello for all !
I am a beginner in liferay.
I have the structure :

<root>
  <dynamic-element name="Tit" type="text" index-type="" repeatable="false"></dynamic-element>
  <dynamic-element name="Tex" type="text_area" index-type="" repeatable="false"></dynamic-element>
  <dynamic-element name="Doc" type="document_library" index-type="" repeatable="true"></dynamic-element>
</root>


And template :


<xsl:value-of disable-output-escaping="yes" select="root/dynamic-element[@name='Tit']/dynamic-content" />
<xsl:value-of disable-output-escaping="yes" select="root/dynamic-element[@name='Tex']/dynamic-content" />			
<xsl:value-of disable-output-escaping="yes" select="root/dynamic-element[@name='Doc']/dynamic-content" />


Its not working repetition of 'Doc' ! emoticon
thumbnail
prakash harigopal, modifié il y a 13 années.

RE: Help me plz !

Regular Member Publications: 101 Date d'inscription: 23/06/10 Publications récentes
Am not expert in XSD , but can help you in VM

Template :

<div>
$Tit.data
$Tex.data

#foreach($document in $doc.siblings)
<a href="$document.data">Document</a>
#end
</div>


regds
Prakash.
thumbnail
Simon Gołębiewski, modifié il y a 13 années.

RE: Help me plz !

Regular Member Publications: 246 Date d'inscription: 08/06/09 Publications récentes
Try this:


<xsl:for-each select="root/dynamic-element[@name='Doc']">
   <xsl:value-of disable-output-escaping="yes" select="root/dynamic-element[@name='Doc']/dynamic-content" />
</xsl:for-each>
thumbnail
suna suna suna, modifié il y a 13 années.

RE: Help me plz !

Junior Member Publications: 38 Date d'inscription: 10/12/09 Publications récentes
Hello

thank you for you answer
it works with VM

emoticon