Hey Shane,
So not sure which attribute you are trying to get, but I was able to
move from an output of.
<?xml version="1.0" encoding="UTF-8"?>
<field xmlns:mods="
http://www.loc.gov/mods/v3"
xmlns:java="
http://xml.apache.org/xalan/java"
xmlns:foxml="info:fedora/fedora-system:def/foxml#"
name="cml_atomic_overlap_population_ms">10.519302 0.185676 0.310778
0.310776 -0.008815 -0.008815 0.310776 -0.008814 0.185676 5.962179
-0.008927 -0.008933 0.378882 0.378877 -0.008931 0.378875 0.310778
-0.008927 9.249839 -0.002375 0.001927 -7.0E-5 -0.002375 -7.0E-5 0.310776
-0.008933 -0.002375 9.249849 -7.0E-5 -7.0E-5 -0.002375 0.001929
-0.008815 0.378882 0.001927 -7.0E-5 0.47601 -0.009721 -7.0E-5 -0.009721
-0.008815 0.378877 -7.0E-5 -7.0E-5 -0.009721 0.476008 0.001928 -0.00972
0.310776 -0.008931 -0.002375 -0.002375 -7.0E-5 0.001928 9.249846 -7.0E-5
-0.008814 0.378875 -7.0E-5 0.001929 -0.009721 -0.00972 -7.0E-5
0.476007</field>
To an (I'm guessing) over-kill induced.
<?xml version="1.0" encoding="UTF-8"?>
<field xmlns:mods="
http://www.loc.gov/mods/v3"
xmlns:java="
http://xml.apache.org/xalan/java"
xmlns:foxml="info:fedora/fedora-system:def/foxml#"
name="cml_atomic_overlap_population_ms">10.519302 0.185676 0.310778
0.310776 -0.008815 -0.008815 0.310776 -0.008814 0.185676 5.962179
-0.008927 -0.008933 0.378882 0.378877 -0.008931 0.378875 0.310778
-0.008927 9.249839 -0.002375 0.001927 -7.0E-5 -0.002375 -7.0E-5 0.310776
-0.008933 -0.002375 9.249849 -7.0E-5 -7.0E-5 -0.002375 0.001929
-0.008815 0.378882 0.001927 -7.0E-5 0.47601 -0.009721 -7.0E-5 -0.009721
-0.008815 0.378877 -7.0E-5 -7.0E-5 -0.009721 0.476008 0.001928 -0.00972
0.310776 -0.008931 -0.002375 -0.002375 -7.0E-5 0.001928 9.249846 -7.0E-5
-0.008814 0.378875 -7.0E-5 0.001929 -0.009721 -0.00972 -7.0E-5
0.476007</field>
<field xmlns:mods="
http://www.loc.gov/mods/v3"
xmlns:java="
http://xml.apache.org/xalan/java"
xmlns:foxml="info:fedora/fedora-system:def/foxml#"
name="attrib_rows_ms">8</field>
<field xmlns:mods="
http://www.loc.gov/mods/v3"
xmlns:java="
http://xml.apache.org/xalan/java"
xmlns:foxml="info:fedora/fedora-system:def/foxml#"
name="attrib_columns_ms">8</field>
<field xmlns:mods="
http://www.loc.gov/mods/v3"
xmlns:java="
http://xml.apache.org/xalan/java"
xmlns:foxml="info:fedora/fedora-system:def/foxml#"
name="attrib_datatype_ms">xsd:double</field>
<field xmlns:mods="
http://www.loc.gov/mods/v3"
xmlns:java="
http://xml.apache.org/xalan/java"
xmlns:foxml="info:fedora/fedora-system:def/foxml#"
name="attrib_dictref_ms">cc:mulliken</field>
<field xmlns:mods="
http://www.loc.gov/mods/v3"
xmlns:java="
http://xml.apache.org/xalan/java"
xmlns:foxml="info:fedora/fedora-system:def/foxml#"
name="attrib_matrixtype_ms">squareSymmetric</field>
<field xmlns:mods="
http://www.loc.gov/mods/v3"
xmlns:java="
http://xml.apache.org/xalan/java"
xmlns:foxml="info:fedora/fedora-system:def/foxml#"
name="attrib_units_ms">nonSi:elementaryCharge</field>
<field xmlns:mods="
http://www.loc.gov/mods/v3"
xmlns:java="
http://xml.apache.org/xalan/java"
xmlns:foxml="info:fedora/fedora-system:def/foxml#"
name="attrib_templateref_ms">l601.condensed</field>
To do this I made a couple of assumptions, but hopefully you can adjust
as necessary.
I have attached my modified copy of the sample.xslt
I will mention that I tested this directly with the XALAN jar and NOT
using Gsearch, but in past that is how I have adjusted my stylesheets.
Cheers,
jared
On 2016-06-05 1:27 PM, Shane McCarthy wrote:
> Thank you Jared.
>
> I have attached a syle sheet that gets the value of the element to
> solr. I have been unable to get an attribute's value for that element.
> This style sheet is what I have been working off of by adding fields by
> adding lines like lines 25-29. Unfortunately getting an attribute's
> value value has not been achieved.
>
> I tried to simply change the XPATH of the match on line 25 to include
> /@columns for example but it does not get anything to solr.
>
> Any pointers would be greatly appreciated.
>
> Cheers,
> Shane
>
>
>
> On Sun, Jun 5, 2016 at 12:34 PM, Jared Whiklo <
jwh...@gmail.com
> <mailto:
jwh...@gmail.com>> wrote:
>
> If you can provide a sample XML and your current stylesheet I can
> try to help more.
>
> Cheers,
> Jared
>
> On 3 Jun 2016 12:35 pm, "Shane McCarthy" <
smcc...@upei.ca
> <mailto:
islandora%2Bunsu...@googlegroups.com>
> > <mailto:
islandora+...@googlegroups.com
> <mailto:
islandora%2Bunsu...@googlegroups.com>>.
>
jwh...@gmail.com <mailto:
jwh...@gmail.com>
> --------------------------------------------------
> You know you're from Winnipeg when...You use a down
> comforter in the summer.
>
> --
> For more information about using this group, please read our
> Listserv Guidelines:
>
http://islandora.ca/content/welcome-islandora-listserv
> ---
> You received this message because you are subscribed to the
> Google Groups "islandora" group.
> To unsubscribe from this group and stop receiving emails
> from it, send an email to
>
islandora+...@googlegroups.com
> <mailto:
islandora%2Bunsu...@googlegroups.com>.
> it, send an email to
islandora+...@googlegroups.com
>
https://groups.google.com/d/msgid/islandora/CAAhmLgNVr3pXRoHX9W4DcN7WSbBBNrMwKLBOz6tTtc9zTZ4Cow%40mail.gmail.com
> <
https://groups.google.com/d/msgid/islandora/CAAhmLgNVr3pXRoHX9W4DcN7WSbBBNrMwKLBOz6tTtc9zTZ4Cow%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
https://groups.google.com/d/msgid/islandora/CADOUazZfKssi8b_3f6OtKHSa%2BbuL1tou6vTavPFtS_QZZ%3D7o-A%40mail.gmail.com
> <
https://groups.google.com/d/msgid/islandora/CADOUazZfKssi8b_3f6OtKHSa%2BbuL1tou6vTavPFtS_QZZ%3D7o-A%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
https://groups.google.com/d/msgid/islandora/CAAhmLgOFkpFvRh8ZUui%2Btb1z%3DG2XT%3D0yest0VgXCBQPBsfjcoQ%40mail.gmail.com
> <
https://groups.google.com/d/msgid/islandora/CAAhmLgOFkpFvRh8ZUui%2Btb1z%3DG2XT%3D0yest0VgXCBQPBsfjcoQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
You are validating my inherent mistrust of strangers.