03-05-2007 07:53 PM
<!– Content.xml –>
<content>
<name>Content</name>
<contentreference idref=â€referenced_content†/>
</content>
<!– Referenced Content.xml –>
<content id=â€referenced_contentâ€>
<name>Referenced Content</name>
</content><!– output.xslt –>
…
<xsl:template match="content">
<xsl:value-of select="name" /><br />
<xsl:variable name="referencedId" select="contentreference/@idref" />
<xsl:value-of select="/content[@id=$referencedId]/name" />
</xsl:template>
…<!– output.html –>
<html>
<body>
Content<br /> <!– taken from Content.xml –>
Referenced Content <!– taken from Referenced Content.xml –>
</body>
</html>03-06-2007 03:54 AM
03-06-2007 05:13 PM
In Alfresco, my understanding is that we could store everything in one directory with the id as the filename, then just use Alfresco’s XML loading function: parseXMLDocument() to do something like <xsl:value-of select=â€parseXMLDocument( contentreference/@idref )/name†/> and we would get the output of output.xml in the above example.
The only downfall here is that from the editing user's point of view (in our case) there would be over 1,000 content items with filenames like pu_ae_act-idalt_tsk-idalt or rm_ft_phs-projini_stage-projini in one directory.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.