[sword-devel] CzeCSP xref encoding error

Matěj Cepl mcepl at redhat.com
Thu Apr 10 11:52:54 MST 2014


On Thu, 2014-04-10 at 20:49 +0200, Matěj Cepl wrote:
> On Thu, 2014-04-10 at 20:44 +0200, Matěj Cepl wrote:
> > BTW, my XSLT script is
> > http://luther.ceplovi.cz/git/czekms-csp_bible.git/tree/CEP2OSIS.xsl if
> > you have any comments on it (apparently your XSLT abilities are much
> > higher than mine).
> 
> So, I guess it will be just a bit simpler, I need just to modify this
> template:
> 
>   <!-- refers to other place in Bible -->
>   <xsl:template match="odkazo">

Err, this one as well:

  <!-- refers to a text note -->
  <xsl:template match="odkaz">
    <xsl:variable name="refID" ><xsl:call-template
name="getRefID" /></xsl:variable>
    <xsl:variable name="N" select="./@n"/>
    <xsl:element name="note">
      <xsl:attribute name="type">study</xsl:attribute>
      <xsl:attribute name="osisRef"><xsl:value-of
select="$refID" /></xsl:attribute>
      <xsl:attribute name="osisID"><xsl:value-of
select="concat($refID,'!', at n)" /></xsl:attribute>
      <xsl:attribute name="n"><xsl:value-of
select="./@n" /></xsl:attribute>
      <xsl:apply-templates select="//defpozn[@n=$N]"
mode="collect-footnote" />
    </xsl:element>
  </xsl:template>



-- 
http://www.ceplovi.cz/matej/, Jabber: mcepl at ceplovi.cz
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
 
My life has been full of terrible misfortunes most of which never
happened.
    -- Michel de Montaigne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20140410/0167e266/attachment.sig>


More information about the sword-devel mailing list