[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: global language parameter

Subject: Re: global language parameter
From: Syd Bauman <Syd_Bauman@xxxxxxxxx>
Date: Tue, 16 Feb 2010 15:42:19 -0500
Re:  global language parameter
I think others here have certainly set you on the right XSLT track,
and A. Welch's recomendation about CSS is good advice. That said, it
is worth considering if XSLT is the right place to do this work. 

My instinct, which others may convince me is wrong, is to just
transform the xml:lang= in the TEI input into lang= in the XHTML
output, and ask CSS to do all the heavy lifting.

I.e., I would likely use something like

  <xsl:template match="@xml:id">
    <xsl:attribute name="lang">
      <xsl:value-of select="@xml:id"/>
    </xsl:attribute>
  </xsl:template>

in my XSLT, and then something like

 :lang(sa) { font-family: 'Times Ext Roman'; }
 :lang(zh) { font-family: Mincho, MingLiU, Batang, Simsun; }
 :lang(ko) { font-family: Batang, BatangChe; }

in my CSS.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.