Re: [CODE4LIB] xml stylesheet question

2011-08-02 Thread Ethan Gruber
+1 for Shawn's example. Ethan On Mon, Aug 1, 2011 at 9:30 PM, Shawn Averkamp shawnaverk...@gmail.comwrote: You could also combine the best of both solutions with: xsl:for-each select=//dc:subject tr td scope=col class=width1/ th scope=col

Re: [CODE4LIB] xml stylesheet question

2011-08-02 Thread Edward M. Corrado
Thanks for everyone's response. My issue is now solved. Edward On Tue, Aug 2, 2011 at 8:33 AM, Ethan Gruber ewg4x...@gmail.com wrote: +1 for Shawn's example. Ethan On Mon, Aug 1, 2011 at 9:30 PM, Shawn Averkamp shawnaverk...@gmail.comwrote: You could also combine the best of both

[CODE4LIB] xml stylesheet question

2011-08-01 Thread Edward M. Corrado
Hi, I am trying to do something with an xsl stylesheet (1.0) that seems like it should be pretty simple, but I can't figure out how to do it or find any examples on the Web that work-. I have a set of Dublin Core XML records that have the subjects as either LCSH or TGM. The type of subject is

Re: [CODE4LIB] xml stylesheet question

2011-08-01 Thread Neal P Fitzgerald
Sent: Tuesday, August 02, 2011 7:54 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: [CODE4LIB] xml stylesheet question Hi, I am trying to do something with an xsl stylesheet (1.0) that seems like it should be pretty simple, but I can't figure out how to do it or find any examples on the Web that work

Re: [CODE4LIB] xml stylesheet question

2011-08-01 Thread Enrico Silterra
something like xsl:for-each select=//dc:subject      tr       td scope=col class=width1/ xsl:choose xsl:when test=@xsi:type='dcterms:LCSH'  th scope=col class=width20Subject: LCSH /th /xsl:when xsl:when test=@xsi:type='dcterms:TGM'  th scope=col class=width20Subject: TGM/th /xsl:when

Re: [CODE4LIB] xml stylesheet question

2011-08-01 Thread Shawn Averkamp
You could also combine the best of both solutions with: xsl:for-each select=//dc:subject tr td scope=col class=width1/ th scope=col class=width20Subject/th xsl:if test=@xsi:type xsl:text (/xsl:text) xsl:value-of select=substring-after(@xsi:type, ':')/