OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Initcap function

I'm not sure if this is the right forum to ask this question.

I was wondering if there is an xsl technique or function which I can use
to create text with initial capitalizations e.g.

"New York" = initcap("NEW york")

The closest I found is translate("NEW york","abcd..z","ABCD..Z") which is
not what I really need.


> ----- Original Message -----
> From: "Nicolas Pillot" <nicolas.pillot@polymtl.ca>
> To: <docbook-apps@lists.oasis-open.org>
> Sent: Friday, February 06, 2004 8:03 AM
> Subject: [docbook-apps] SVG graphics, & MathML
>>  Hello !
>>  I have two small questions for you :-)
>>   - I need to include MathML in DocBook. Googling, i found JEuclid, but
>> it
>>     seems quite old (no problem with that if it works). I will test it
>> and
> see
>>     if it suits my needs, but i'd like to know if there is something
>> else
> out
>>     there doing the convertion from MathML to SVG. If it is able
>> rasterize
> the
>>     equations to a bitmap, that would a good thing too, but not
>> mandatory.
> If you are doing MathML, you need to spend some time in the W3C
> MathML pages.  You will find other software listed under "software
> supporting MathML":
> http://www.w3.org/Math/
>>   - I had no problem so far processing extern SVG from DocBook, with
>>     mediaobject, imageobject, imagedata, and the role attribute. (as in
>>     sagehill.net example) But when i try embedded SVG, i get a message
> about
>>     no matching templates for svg, g & circle tag. And my idea was to
> write
>>     something that would convert inline SVG to extern SVG, but i
>> wondered
> if
>>     there was any existing solution to that kind of thing.
> Embedded SVG is supported by the XSL stylesheets.  You put it
> inside the imageobject, and make sure the namespace on the
> elements is correct.  Then the stylesheet will pass it through, with
> the expectation that something downstream will interpret the
> svg elements.  For example:
> <mediaobject>
> <imageobject>
> <svg xmlns="http://www.w3.org/2000/svg";>
>    <g style="fill-opacity:0.7; stroke:black; stroke-width:0.1cm;">
>      <circle cx="6cm" cy="2cm" r="100" style="fill:red;"
>                      transform="translate(0,50)" />
>      <circle cx="6cm" cy="2cm" r="100" style="fill:blue;"
>                      transform="translate(70,150)" />
>      <circle cx="6cm" cy="2cm" r="100" style="fill:green;"
>                      transform="translate(-70,150)"/>
>    </g>
> </svg>
> </imageobject>
> </mediaobject>
> Note that this usage will not validate with the DocBook DTD.
> The DTD requires imageobject to have an imagedata child,
> and other elements in a different name space will not validate.
> Is there a particular reason you need to inline the SVG code?
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
> To unsubscribe from this list, send a post to
> docbook-apps-unsubscribe@lists.oasis-open.org, or visit
> http://www.oasis-open.org/mlmanage/.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]