Re: [oXygen-user] xslt puzzle

2018-03-06 Thread Kalvesmaki, Joel
Lou,

Below is how I would approach it. I take into account that you want to treat 
the opening span specially.

Best wishes,

jk
--
Joel Kalvesmaki
Managing Editor in Byzantine Studies
Dumbarton Oaks
202 339 6435


























From: oXygen-user  on behalf of Lou Burnard 

Date: Tuesday, March 6, 2018 at 9:21 AM
To: "oxygen-user@oxygenxml.com" 
Subject: [oXygen-user] xslt puzzle


I take the liberty of exposing my ignorance of how to use the cool grouping 
features of xslt on the list, in the hope that someone will take pity on me and 
explain what's going on here.

My input file (in the HTML namespace) contains chunks like this:

Waarde Meryan!



‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
...  Dus, vous voilà prévenu, le pire est fait.



‘Weet dan ...  voet voortleven en ten slotte totaal geruïneerd! Hij, zeer plotseling gestorven gij begrijpt mij wel!






which I want to transform  (obviously) to something like this

Waarde Meryan!



‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
...  Dus, vous voilà prévenu, le pire est fait.





‘Weet dan ...  voet voortleven en ten slotte totaal geruïneerd! Hij, zeer plotseling gestorven gij begrijpt mij wel!





My stylesheet has a template for div[@class] which contains the following:





















and another for span which handles the conversion to 

... and this NEARLY works. But not quite. It generates


Waarde Meryan! 

‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
... Dus, vous voilà prévenu, le pire est fait.
>

‘Weet dan ... voet voortleven en ten slotte totaal geruïneerd! Hij, 
zeer
 plotseling gestorven gij begrijpt mij wel!



i.e. it looks as if the current-group starts a new sequence for each h:div 
child, rather than for each . So I am misunderstanding something fairly 
fundamental about how this grouping mechanism works.

Any and all advice gratefully received!

Lou

Disclaimer

The information contained in this communication from the sender is 
confidential. It is intended solely for use by the recipient and others 
authorized to receive it. If you are not the recipient, you are hereby notified 
that any disclosure, copying, distribution or taking action in relation of the 
contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been 
automatically archived by Mimecast Ltd, an innovator in Software as a Service 
(SaaS) for business, providing a safer and more useful place for your human 
generated data. Mimecast specializes in security, archiving and compliance. To 
find out more visit the Mimecast website.
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] xslt puzzle

2018-03-06 Thread Lou Burnard

Ha!

Thanks Peter! It's totally obvious when a fresh pair of eyes looks at it!

I'll go back to banging the rocks together now ...

Lou

On 06/03/18 14:36, Peter Stadler wrote:

Hi Lou,

I think you’ll need to move the   (which you want to create) outside the inner loop 
(
Am 06.03.2018 um 15:20 schrieb Lou Burnard :

I take the liberty of exposing my ignorance of how to use the cool grouping 
features of xslt on the list, in the hope that someone will take pity on me and 
explain what's going on here.

My input file (in the HTML namespace) contains chunks like this:

Waarde Meryan!

‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
...  Dus, vous voilà prévenu, le pire est fait.

‘Weet dan ...  voet voortleven en ten slotte totaal geruïneerd! Hij, zeer plotseling gestorven gij begrijpt mij wel!




which I want to transform  (obviously) to something like this

Waarde Meryan!

‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
...  Dus, vous voilà prévenu, le pire est fait.


‘Weet dan ...  voet voortleven en ten slotte totaal geruïneerd! Hij, zeer plotseling gestorven gij begrijpt mij wel!




My stylesheet has a template for div[@class] which contains the following:





















and another for span which handles the conversion to 

... and this NEARLY works. But not quite. It generates


Waarde Meryan! 

‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
... Dus, vous voilà prévenu, le pire est fait.
>

‘Weet dan ... voet voortleven en ten slotte totaal geruïneerd! Hij, 
zeer
 plotseling gestorven gij begrijpt mij wel!



i.e. it looks as if the current-group starts a new sequence for each h:div child, 
rather than for each . So I am misunderstanding something fairly 
fundamental about how this grouping mechanism works.

Any and all advice gratefully received!

Lou



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

--
Peter Stadler
Carl-Maria-von-Weber-Gesamtausgabe
Arbeitsstelle Detmold
Hornsche Str. 39
D-32756 Detmold
Tel. +49 5231 975-676
Fax: +49 5231 975-668
stadler at weber-gesamtausgabe.de
www.weber-gesamtausgabe.de



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] xslt puzzle

2018-03-06 Thread Peter Stadler
Hi Lou,

I think you’ll need to move the   (which you want to create) outside the 
inner loop (Waarde Meryan!
> 
> ‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
> ...  Dus, vous voilà prévenu, le pire est fait.
> 
> ‘Weet dan ...  voet voortleven en ten slotte totaal geruïneerd! Hij,  class="cursief">zeer plotseling gestorven gij begrijpt mij wel!
> 
> 
> 
> 
> which I want to transform  (obviously) to something like this
> 
> Waarde Meryan!
> 
> ‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
> ...  Dus, vous voilà prévenu, le pire est fait.
> 
> 
> ‘Weet dan ...  voet voortleven en ten slotte totaal geruïneerd! Hij,  rend="italic">zeer plotseling gestorven gij begrijpt mij wel!
> 
> 
> 
> 
> My stylesheet has a template for div[@class] which contains the following:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> and another for span which handles the conversion to 
> 
> ... and this NEARLY works. But not quite. It generates
> 
> 
> Waarde Meryan! 
> 
> ‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
> ... Dus, vous voilà prévenu, le pire est fait.
> >
> 
> ‘Weet dan ... voet voortleven en ten slotte totaal geruïneerd! Hij, 
> zeer
>  plotseling gestorven gij begrijpt mij wel!
> 
> 
> 
> i.e. it looks as if the current-group starts a new sequence for each h:div 
> child, rather than for each . So I am misunderstanding something fairly 
> fundamental about how this grouping mechanism works.
> 
> Any and all advice gratefully received!
> 
> Lou
> 
> 
> 
> ___
> oXygen-user mailing list
> oXygen-user@oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user

--
Peter Stadler
Carl-Maria-von-Weber-Gesamtausgabe
Arbeitsstelle Detmold
Hornsche Str. 39
D-32756 Detmold
Tel. +49 5231 975-676
Fax: +49 5231 975-668
stadler at weber-gesamtausgabe.de
www.weber-gesamtausgabe.de



signature.asc
Description: Message signed with OpenPGP
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user