/ Zope / WHI Hosted Mailing Lists / osis-user / Archive / 2006 / 2006-12 / XSLT and the q element

[ << ]

[ Use of medial on quotes / "Jim Schaad" ... ]

XSLT and the q element
"Jim Schaad" <jimsch(at)nwlink.com>
2006-12-13 19:17:06 [ FULL ]
I was looking at doing an XSLT that automatically chose the correct form of
quotation marks to insert into a text as the stylesheet was running.  Given
that I am using the milestone version of the q element, the only way that I
can see to do this is to write a very complex select criteria (based on
counting the number of q elements with sID vs eID).  Does anybody know of a
better way of doing this?

Jim Schaad

Re: [osis-user] XSLT and the q element
DavidTroidl(at)aol.com
2006-12-13 20:02:40 [ FULL ]
Hi,
 
The 'q' element has a very useful attribute: 'level' that can be used to  set 
the depth of the quotations.  

Peace,

David
Attachments:  
text.html text/html 719 Bytes

Re: [osis-user] XSLT and the q element
Jim_Albright(at)wycliffe.org
2006-12-13 20:03:38 [ FULL ]
Assuming that you didn't put in any continuing quote markers at paragraph 
breaks ... the count is quite fast and worthy to use.

Jim Albright
704 843-0582
JAARS, Speeding Bible Translation
Wycliffe, Partners in Bible Translation





"Jim Schaad" <jimsch(at)nwlink.com> 
12/13/2006 07:16 PM
Please respond to
osis-user(at)whi.wts.edu


To
<osis-user(at)whi.wts.edu>
cc

Subject
[osis-user] XSLT and the q element






I was looking at doing an XSLT that automatically chose the correct form 
of
quotation marks to insert into a text as the stylesheet was running. Given
that I am using the milestone version of the q element, the only way that 
I
can see to do this is to write a very complex select criteria (based on
counting the number of q elements with sID vs eID).  Does anybody know of 
a
better way of doing this?

Jim Schaad



[...]
Attachments:  
text.html text/html 1916 Bytes

RE: [osis-user] XSLT and the q element
"Jim Schaad" <jimsch(at)nwlink.com>
2006-12-13 20:28:44 [ FULL ]
Yes.  But of course I did use the continuing quote markers.
 
jim
 


  _____  

From: Jim_Albright(at)wycliffe.org [mailto:Jim_Albright(at)wycliffe.org] 
Sent: Wednesday, December 13, 2006 5:02 PM
To: osis-user(at)whi.wts.edu
Subject: Re: [osis-user] XSLT and the q element



Assuming that you didn't put in any continuing quote markers at paragraph
breaks ... the count is quite fast and worthy to use. 

Jim Albright
704 843-0582
JAARS, Speeding Bible Translation
Wycliffe, Partners in Bible Translation





"Jim Schaad" <jimsch(at)nwlink.com> 


12/13/2006 07:16 PM 


Please respond to
osis-user(at)whi.wts.edu



To
<osis-user(at)whi.wts.edu> 

cc

Subject
[osis-user] XSLT and the q element

	




I was looking at doing an XSLT that automatically chose the correct form of
quotation marks to insert into a text as the stylesheet was running.  Given
that I am using the milestone version of the q element, the only way that I
can see to do this is to write a very complex select criteria (based on
counting the number of q elements with sID vs eID).  Does anybody know of a
better way of doing this?

Jim Schaad



[...]
Attachments:  
text.html text/html 3566 Bytes

Re: [osis-user] XSLT and the q element
DM Smith <dmsmith555(at)yahoo.com>
2006-12-13 20:41:22 [ FULL ]
Counting does not work well with milestone elements as they can be in  
inconvienent places.
I'd love to be proven wrong with a fragment of xslt that works.

On Dec 13, 2006, at 8:28 PM, Jim Schaad wrote:
[...]
Attachments:  
text.html text/html 4067 Bytes

Re: [osis-user] XSLT and the q element
Todd Tillinghast <todd(at)snowfallsoftware.com>
2006-12-13 21:00:28 [ FULL ]
Jim,

If the source text uses the level attribute then it is quite simple.

Also the "marker" attribute if used will tell you the exact character to 
use.

You should not have trouble with continuation quote marks because they 
are not marked with a <q> element but rather the <milestone>
element.

If


Jim Schaad wrote:[...]

MailBoxer