Steven,

This is EXACTLY what I needed. The documentation is scant, but after Mark Woods, and reviewing Tim Donahue's documentation, and your email, it is making sense. I need to get my skill set up to xhtml strict coding and I should be good to go.

The xmlui looks to be more powerful than the JSP, but is more difficult to work, since I've been able to make the jsp do all kinds of things--but only on the global level, not drilled down into other levels.

So, how do we get the documentation updated for say, 1.6 release with these tidbits in there?

Again, THANKS to ALL who have assisted.

--Jeff

Jeffrey Trimble
System LIbrarian
William F.  Maag Library
Youngstown State University
330.941.2483 (Office)
jtrim...@cc.ysu.edu
http://www.maag.ysu.edu
http://digital.maag.ysu.edu



On Apr 30, 2009, at 2:28 PM, Williams, Steven D wrote:

Jeff,
If you look at the structural.xsl file or the xsl file in your theme you will notice the reference to "xmlns='http://www.w3.org/1999/ xhtml'" at the top of the page. This allows for strict xhtml in your xsl, but you will receive a error if you include "&nbsp;. The xslt standard for a space is "<xsl:text> </xsl:text>".

In order to make future upgrades easier you should not edit the dri2xhtml documents. One method is to copy the template you want to edit into a the xsl file in your theme. If you do not currently have a xsl file in your them take a look at the "template" them and copy the template.xsl file into your theme (note it includes the footer template and will override the footer in the dri2xhtml/ structural.xsl file). After copying you will want to rename the template.xsl file to have the same name as your theme (EX: yourtheme.xsl). The next step is to edit your theme sitemap.xmap to transform your theme xsl file by editing step 3 in your sitemap.

<!-- Step 3: Transform to XHTML -->
<map:transform src="yourtheme.xsl"/>

After you have a theme xsl file you will want to copy the needed template section from the dri2xhtml/DIM-Handler.xsl and perform your edits in your theme.xsl file.

   <!-- Generate the info about the item from the metadata section -->
   <xsl:template match="dim:dim" mode="itemSummaryList-DIM">

        <!---copy to the end of the template->

        </xsl:template>

Hope this helps.

Steve Williams
Webmaster
University of Texas Libraries
University of Texas at Austin
PCL 1.128G
512-495-4384




----------------------------------------------------------------------

Message: 1
Date: Wed, 29 Apr 2009 16:03:39 -0400
From: "Mark H. Wood" <mw...@iupui.edu>
Subject: Re: [Dspace-tech] xmlui customizations
To: dspace-tech@lists.sourceforge.net
Message-ID: <20090429200339.gb19...@iupui.edu>
Content-Type: text/plain; charset="us-ascii"

On Wed, Apr 29, 2009 at 01:24:16PM -0400, Jeffrey Trimble wrote:
So, how does one customize the brief item display of fields?  I am
not able to find a reference to this in the documentation.  Any
assistance is appreciated.

Good question!  Unless something has changed recently, you didn't miss
it in the documentation (and we need to fix that).

The various pages are laid out by the Theme which is active for a
given URL.  (This is determined in config/xmlui.xconf, near the
bottom.)  So you first need to figure out which Theme you're going to
customize.

All the Themes I'm aware of inherit a lot of code from what I like to
call the "Theme library": 'themes/dri2xhtml.xsl' and the components it
'xsl:import's from 'themes/dri2xhtml/*'.  In the source kit these are
found under 'dspace-xmlui/dspace-xmlui-webapp/src/main/webapp'.
There's some discussion on the wiki of copying a Theme to make a new
one, if you need to do that.  (It's probably a good idea to do so
whenever you customize.)

You need to fish around in the Theme library to find the bit of XSL
that transforms DRI elements into the kind of page you want to alter.
The stuff I want to change tends to be in 'dri2xhtml/DIM-Handler.xsl'.
Typically you make a copy of that code and place it in your Theme's
own something.xsl, making the necessary alterations.  That causes your
altered version of the template(s) to override the 'import'ed code
from the "library".

I think the area you want is the "itemSummaryView-DIM" template.

I think there's some material on the wiki about getting the raw DRI
for an interesting page, which may help to track down the particular
transform code for the portion you're interested in.

--
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Friends don't let friends publish revisable-form documents.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available

------------------------------

Message: 2
Date: Wed, 29 Apr 2009 16:19:00 -0400
From: Jeffrey Trimble <jtrim...@cc.ysu.edu>
Subject: Re: [Dspace-tech] xmlui customizations
To: "Mark H. Wood" <mw...@iupui.edu>
Cc: dspace-tech@lists.sourceforge.net
Message-ID: <e7ba4b01-8e10-4adf-af66-0bb37959a...@cc.ysu.edu>
Content-Type: text/plain; charset="us-ascii"

Excellent!

So, I do need to customize the *.xsl files that are stored in the
dri2xhtml directory huh?!

One further questions, since I have been in those files looking at
them.  Is it possbile to
code more indepth HTML coding like Tables, TR, TD or will cocoon cough
at this during
transformation?

--Jeff

Jeffrey Trimble
System LIbrarian
William F.  Maag Library
Youngstown State University
330.941.2483 (Office)
jtrim...@cc.ysu.edu
http://www.maag.ysu.edu
http://digital.maag.ysu.edu



On Apr 29, 2009, at 4:03 PM, Mark H. Wood wrote:

On Wed, Apr 29, 2009 at 01:24:16PM -0400, Jeffrey Trimble wrote:
So, how does one customize the brief item display of fields?  I am
not able to find a reference to this in the documentation.  Any
assistance is appreciated.

Good question! Unless something has changed recently, you didn't miss
it in the documentation (and we need to fix that).

The various pages are laid out by the Theme which is active for a
given URL.  (This is determined in config/xmlui.xconf, near the
bottom.)  So you first need to figure out which Theme you're going to
customize.

All the Themes I'm aware of inherit a lot of code from what I like to
call the "Theme library":  'themes/dri2xhtml.xsl' and the components
it
'xsl:import's from 'themes/dri2xhtml/*'.  In the source kit these are
found under 'dspace-xmlui/dspace-xmlui-webapp/src/main/webapp'.
There's some discussion on the wiki of copying a Theme to make a new
one, if you need to do that.  (It's probably a good idea to do so
whenever you customize.)

You need to fish around in the Theme library to find the bit of XSL
that transforms DRI elements into the kind of page you want to alter.
The stuff I want to change tends to be in 'dri2xhtml/DIM- Handler.xsl'.
Typically you make a copy of that code and place it in your Theme's
own something.xsl, making the necessary alterations. That causes your
altered version of the template(s) to override the 'import'ed code
from the "library".

I think the area you want is the "itemSummaryView-DIM" template.

I think there's some material on the wiki about getting the raw DRI
for an interesting page, which may help to track down the particular
transform code for the portion you're interested in.

--
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Friends don't let friends publish revisable-form documents.
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code
vel09scf
and Save an extra 15% before 5/3. 
http://p.sf.net/sfu/velocityconf_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

------------------------------

Message: 4
Date: Wed, 29 Apr 2009 17:00:46 -0400
From: "Mark H. Wood" <mw...@iupui.edu>
Subject: Re: [Dspace-tech] xmlui customizations
To: dspace-tech@lists.sourceforge.net
Message-ID: <20090429210046.gc19...@iupui.edu>
Content-Type: text/plain; charset="us-ascii"

On Wed, Apr 29, 2009 at 04:19:00PM -0400, Jeffrey Trimble wrote:
So, I do need to customize the *.xsl files that are stored in the dri2xhtml
directory huh?!

Well, I'd leave those alone and just copy what you need into a theme,
then customize it there, but yes, your starting point is in there.

One further questions, since I have been in those files looking at
them.  Is it possbile to code more indepth HTML coding like Tables,
TR, TD or will cocoon cough at this during transformation?

I think you could, but haven't tried anything extensive myself.
Cocoon is just running the XSL engine over its inputs.  If you keep
the namespaces straight, HTML should just flow through.  What you have
to watch is how the various XSL bits assemble the page, so you wind up
with well-formed HTML.

--
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Friends don't let friends publish revisable-form documents.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available

------------------------------

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf

------------------------------

_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


End of DSpace-tech Digest, Vol 36, Issue 68
*******************************************

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to