[XML4Lib] Job opening: XML developer at Tufts
University (UNCLASSIFIED)
Charles Yates
ceyates at stanford.edu
Fri May 16 15:30:53 EDT 2008
for-each changes the context node to each successive item in the select
node list.
you should use href="{.}" or href="{text()}" or href="{self::node()}"
Metz, Edward J Mr CIV USA TRADOC wrote:
> Classification: UNCLASSIFIED
> Caveats: NONE
>
> I'm new to this list and have a question that I'm hoping someone can
> help me with. The answer is probably really straightforward but I can't
> seem to come up with it.
>
> I'm working on a very simple, bearbones XSL stylesheet to convert an XML
> file (using Dublin Core schema) to HTML. The problem I have is
> transforming the Identifier field containing an objects url into the <a
> href""> tag in my HTML.
>
> This bit of code from my XSL is for the Identifier field :
> <tr>
> <td align="left" valign="top" bgcolor="khaki">
> <b>URL(s):</b>
> </td>
> <td align="left" valign="top"><b>
>
> <xsl:for-each select="dc:identifier">
>
> <div class="item-style">
> <a href="{dc:identifier}">
> <xsl:value-of select="."/><br/>
>
> It produces this output though in my htm document:
> <div class="item-style"><a
> href="">http://excerpts.contentreserve.com/FormatType-25/0857-1/123846-T
> heHouseOfThunder.wma<br></a></div>
>
> No matter what I try so far I don't seem able to get the url valkue to
> appear within the <a href""> tag
>
> Edward Metz
> Systems Librarian
> Combined Arms Research Library, USACGSC
> 250 Gibbon Ave
> Fort Leavenworth KS 66027-2314
> Tel: 913-758-3027
> Fax: 913-758-3014
> DSN: 585-3027
> http://carl.army.mil
>
> Classification: UNCLASSIFIED
> Caveats: NONE
>
>
>
> _______________________________________________
> XML4Lib mailing list
> XML4Lib at webjunction.org
> http://lists.webjunction.org/mailman/listinfo/xml4lib
>
>
More information about the XML4Lib
mailing list