nlbdev / produksjonssystem

Produksjonssystem basert på mapper og pipelines
2 stars 2 forks source link

Error on line 66 of innleste-noter.xsl #115

Closed josteinaj closed 5 years ago

josteinaj commented 6 years ago

Dette skjer med test-boka vi bruker (558237).

prepare-for-narration.xsl (1.1.0 / 2018-04-11)
* Tester metadata ... 
    Mangler forventet metadata: dc:creator. Prosessen kan likevel fortsette.
* Metadata er mangelfull, men prosessen fortsetter
* Transformerer ... 
* Spraak: Bokmaal (nb-NO)
* Bygger opp cover
* Fjerner opprinnelig cover
Error on line 66 of innleste-noter.xsl:
  FORX0002: Syntax error at char 2 in regular expression: No expression before quantifier
  at xsl:apply-templates (file:/home/jostein/nlb/produksjonsystem/xslt/nlbpub-to-narration-epub/prepare-for-narration.xsl#96)
     processing /html/body[1]/section[6]/section[6]/table[1]/tbody[1]/tr[1]/td[4]/p[1]/a[1]
  at xsl:apply-templates (file:/home/jostein/nlb/produksjonsystem/xslt/nlbpub-to-narration-epub/prepare-for-narration.xsl#96)
     processing /html/body[1]/section[6]/section[6]/table[1]/tbody[1]/tr[1]/td[4]/p[1]
  at xsl:apply-templates (file:/home/jostein/nlb/produksjonsystem/xslt/nlbpub-to-narration-epub/prepare-for-narration.xsl#96)
     processing /html/body[1]/section[6]/section[6]/table[1]/tbody[1]/tr[1]/td[4]
  at xsl:apply-templates (file:/home/jostein/nlb/produksjonsystem/xslt/nlbpub-to-narration-epub/prepare-for-narration.xsl#96)
     processing /html/body[1]/section[6]/section[6]/table[1]/tbody[1]/tr[1]
  at xsl:apply-templates (file:/home/jostein/nlb/produksjonsystem/xslt/nlbpub-to-narration-epub/prepare-for-narration.xsl#96)
     processing /html/body[1]/section[6]/section[6]/table[1]/tbody[1]
  at xsl:apply-templates (file:/home/jostein/nlb/produksjonsystem/xslt/nlbpub-to-narration-epub/prepare-for-narration.xsl#96)
     processing /html/body[1]/section[6]/section[6]/table[1]
  at xsl:apply-templates (file:/home/jostein/nlb/produksjonsystem/xslt/nlbpub-to-narration-epub/prepare-for-narration.xsl#96)
     processing /html/body[1]/section[6]/section[6]
  at xsl:apply-templates (file:/home/jostein/nlb/produksjonsystem/xslt/nlbpub-to-narration-epub/prepare-for-narration.xsl#135)
     processing /html/body[1]/section[6]
  at xsl:apply-templates (file:/home/jostein/nlb/produksjonsystem/xslt/nlbpub-to-narration-epub/prepare-for-narration.xsl#96)
     processing /html/body[1]
  at xsl:apply-templates (file:/home/jostein/nlb/produksjonsystem/xslt/nlbpub-to-narration-epub/prepare-for-narration.xsl#90)
     processing /html
Transformation failed: Run-time errors were reported
josteinaj commented 6 years ago

current() må vaskes hvis den skal være en del av regexen.

Se: https://github.com/nlbdev/produksjonssystem/commit/e125863b8743d01417d369cb9e1f15da21000877#diff-b83480287f1b2208219cebac667e5c22R42

PerSennels commented 6 years ago

@josteinaj Har du fikset dette? Eller bare kommentert vekk noe midlertidig? Og som jeg må fikse hvis koden skal gjeninnsettes?

josteinaj commented 6 years ago

Kommentert ut midlertidig i påvente av at du får sett på det. Kommenter xsl:chooseen som er kommentert ut på linje 59 i innleste-noter.xsl, og kjør xspec-testen, så skal du reprodusert feilen.

josteinaj commented 5 years ago

forsøkt fikset i 1a23ba76a621216ffe5ae4fc2dc2768015011de9