|
Subject: Re: [xsl] Question about isolating records From: "G. Ken Holman g.ken.holman@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 6 Sep 2015 02:20:34 -0000 |
I am still missing something -- I have been building the key in File 1 with this code:
<xsl:key name="pdf-key" match="Item" use="doc('FILE2')//Shelfmark"/>
That, of course, gives me all the content of every <Items> as my pdf-number when I call
<xsl:attribute name="pdf-number" select="key('pdf-key', ., doc('test-xml.xml'))"/>
If I use:
<xsl:key name="pdf-key" match="Item" use="doc('FILE2')/Shelfmark"/>
I get nothing when I do the look-up.
Am I supposed to build the key in File2, and if so, how do I then preserve it for use in File1.
Sorry to be so dense, but I have never used keys before.
My last was not quite right: I am building the key in the stylesheet that processes File 1.
PS. Lost your book when my last computer went south.
-- Check our site for free XML, XSLT, XSL-FO and UBL developer resources | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/video.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ | G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ profile: http://plus.google.com/+GKenHolman-Crane/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |
--- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Question about isolating , Mark Wilson pubs@xxx | Thread | Re: [xsl] Question about isolating , Mark Wilson pubs@xxx |
| Re: [xsl] Question about isolating , Mark Wilson pubs@xxx | Date | Re: [xsl] Question about isolating , Mark Wilson pubs@xxx |
| Month |