layoutengine test text-transform2.xml

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

layoutengine test text-transform2.xml

Simon Pepping
Why is this expectation in text-transform2 correct:

          <fo:block>2: <fo:wrapper text-transform="capitalize">This tExT is ca<fo:wrapper color="red">pit</fo:wrapper>A<fo:inline color="blue">liZ</fo:inline>ed.</fo:wrapper></fo:block>

    <eval expected="2: This Text Is CaPitALizEd." xpath="//flow/block[2]"/>

Reading the XSL spec, section 7.16.6, I expect 'This Text Is
Capitalized' despite the wrapper and inline elements. The spec only
speaks about words. There is no mention that fo child elements would
make a difference.

Regards, Simon

--
Simon Pepping
home page: http://www.leverkruid.nl

Reply | Threaded
Open this post in threaded view
|

RE: layoutengine test text-transform2.xml

Victor Mote
Simon Pepping wrote:

> Why is this expectation in text-transform2 correct:
>
>           <fo:block>2: <fo:wrapper
> text-transform="capitalize">This tExT is ca<fo:wrapper
> color="red">pit</fo:wrapper>A<fo:inline
> color="blue">liZ</fo:inline>ed.</fo:wrapper></fo:block>
>
>     <eval expected="2: This Text Is CaPitALizEd."
> xpath="//flow/block[2]"/>
>
> Reading the XSL spec, section 7.16.6, I expect 'This Text Is
> Capitalized' despite the wrapper and inline elements. The
> spec only speaks about words. There is no mention that fo
> child elements would make a difference.

You are correct. The result should be:
    This TExT Is CapitAliZed.


Victor Mote

Reply | Threaded
Open this post in threaded view
|

Re: layoutengine test text-transform2.xml

Jeremias Maerki
In reply to this post by Simon Pepping
So I misunderstood and actually changed the wrong thing. Oh welllllll.

On 09.06.2005 22:25:01 Victor Mote wrote:

> Simon Pepping wrote:
>
> > Why is this expectation in text-transform2 correct:
> >
> >           <fo:block>2: <fo:wrapper
> > text-transform="capitalize">This tExT is ca<fo:wrapper
> > color="red">pit</fo:wrapper>A<fo:inline
> > color="blue">liZ</fo:inline>ed.</fo:wrapper></fo:block>
> >
> >     <eval expected="2: This Text Is CaPitALizEd."
> > xpath="//flow/block[2]"/>
> >
> > Reading the XSL spec, section 7.16.6, I expect 'This Text Is
> > Capitalized' despite the wrapper and inline elements. The
> > spec only speaks about words. There is no mention that fo
> > child elements would make a difference.
>
> You are correct. The result should be:
>     This TExT Is CapitAliZed.
>
>
> Victor Mote



Jeremias Maerki