Created
November 2, 2009 19:15
-
-
Save anonymous/224378 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here is the Folio listing XML: | |
<artfoliolist> | |
<section id="9" handle="art-folio">Art_Folio</section> | |
<entry id="36" art-object="4"> | |
<title-of-folio handle="infinite-architecture">Infinite Architecture</title-of-folio> | |
<folio-type> | |
<item handle="art" id="7">Art</item> | |
</folio-type> | |
<synopsis handle="a-series-of-four-works-that-are-still-being-worked-dealing-with-the-repetition-of-forms-in-the-universe">A series of four works that are still being worked, dealing with the repetition of forms in the universe.</synopsis> | |
<intro-image> | |
<item handle="leaf-falling" id="35">Leaf falling</item> | |
</intro-image> | |
</entry> | |
<entry id="32" art-object="3"> | |
<title-of-folio handle="the-telephone-series">The Telephone Series</title-of-folio> | |
<folio-type> | |
<item handle="art" id="7">Art</item> | |
</folio-type> | |
<synopsis handle="a-series-of-three-paintings-that-deal-with-faith-and-communication">A series of three paintings that deal with faith and communication.</synopsis> | |
<intro-image> | |
<item handle="afikoman" id="31">Afikoman</item> | |
</intro-image> | |
</entry> | |
</artfoliolist> | |
And here is the art object XML: | |
<artfolioimagelist> | |
<section id="10" handle="art-object">Art Object</section> | |
<entry id="35" art-folio="1"> | |
<image-of-object size="295 kb" path="/art_objects" type="image/png"> | |
<filename>Leaf_Falling.png</filename> | |
<meta creation="2009-09-17T12:12:59-04:00" width="377" height="486" /> | |
</image-of-object> | |
<image-description-alt-text handle="a-leaf-falls-from-a-branch-with-a-blue-sky-in-the-background">A leaf falls from a branch with a blue sky in the background.</image-description-alt-text> | |
</entry> | |
<entry id="31" art-folio="1"> | |
<image-of-object size="409 kb" path="/art_objects" type="image/png"> | |
<filename>Afikoman.png</filename> | |
<meta creation="2009-09-17T11:37:46-04:00" width="513" height="486" /> | |
</image-of-object> | |
</entry> | |
</artfolioimagelist> | |
Note the artfoliolist first entry has an <intro image> node with an item having an id attribute of "35" and in the artfolioimagelist there is a entry with an id of 35. The other record also corresponds so I am pulling the right information out of the section data, but how to combine them? | |
Here is what I would like my xslt to do. | |
<xsl:template match="artfoliolist/entry" mode="ListPage"> | |
<dt> <img scr="information from the artfolioimagelist that has with the intro-image id as this node" alt="image-description-alt-text information from the artfolioimagelist that has the same id as this node" /> | |
<a href="{$root}/art/{title-of-folio/@handle}"><xsl:value-of select="title-of-folio" /></a></dt> | |
<dd> | |
<xsl:copy-of select="synopsis" /> | |
</dd> | |
</xsl:template> | |
Hope this makes sense. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment