Subject: Re: [xsl] XSLT Solution for hyphenation From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 28 Dec 2006 09:49:36 -0500 |
heres a sample of the look-up table:
<root> <wordlist> <entry> <search>abaissassent</search> <replace>abais­sassent</replace> </entry> <entry> <search>abaisshrent</search> <replace>abais­shrent</replace> </entry> <entry> <search>abandonnent</search> <replace>aban­donnent</replace> </entry> </wordlist> </root>
Then, given the value "abaissassent" in your stylesheet as $search, you could ask for key('replacements',$search) and get back the replace element with the value "abais­sassent".
Another way, which is a bit of a circumlocution but, you might think, a bit clearer:
which would require you traverse from the entry element node returned by the key, as in
I hope that helps -- Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT Solution for hyphena, Jeff Sese | Thread | [xsl] Meunch away on this, Thomas Stone |
Re: [xsl] FW: XSLT newbie, Mukul Gandhi | Date | Re: [xsl] XPath behaviour, Wendell Piez |
Month |