On Wed, Oct 10, 2012 at 6:15 PM, Jose Blanco <[email protected]> wrote:
> This worked with a few exception.
>
> (1)I had to get rid of
> <xsl:apply-templates />
>
> because it was putting extra stuff by the label.
>From what I see from the DRI fragment, it should be generating a the
select tag you want to label.
So what you're saying sounds strange. If you have any doubts, send me
the HTML that is generated with apply-templates and without it.
> (2)
> It complaint about "for" - I think it need to make a it an attribute using
> xslt.
Yes, sorry about that, I didn't test it and forgot. Should have been:
<label>
<xsl:attribute name="for">sort_by</xsl:attribute>
<xsl:attribute name="style">display:none</xsl:attribute>
Sort By:
</label>
> (3) I have one more question. How did you come up with the path
> match="dri:field[@id='aspect.
>>
>> artifactbrowser.ConfigurableBrowse.field.sort_by']
The document being processed is DRI, so the namespace is "dri:"
You're likely to encounter only one other namespace - "mets:"
The attribute is the "field" element from DRI
This narrows down the selection to the field element with this
particular "id" attribute:
[@id='aspect.artifactbrowser.ConfigurableBrowse.field.sort_by']
so it's actually very precise (just one element should be found).
> Doesn't it have to be more precise, like this one I just found in another
> xslt file
>
> <xsl:template match="dri:div[@n='item-view']/dri:head" priority="5">
> item-view.xsl
This is essentially the same thing, the difference is only the
"/dri:head" part, which selects a child "head" element of a particular
"div" element.
And priority here means that if there's another template matching
exactly "dri:div[@n='item-view']/dri:head" in another stylesheet, you
may change which one gets chosen over the other one.
By default (with no explicit "priority" attribute), it depends on the
include/import command - more about that here:
http://xml.apache.org/xalan-j/xsltc/xsl_include_design.html
Does that make everything clear?
Regards,
~~helix84
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech