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

selective matching

Subject: selective matching
From: "B. Dexheimer" <benjamin.dexheimer@xxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Nov 2000 18:30:50 +0100
selective apply template in xml
I got an xml like following :
<TEXT xml:lang='en'>
      <LABEL label_id="1">Admin Password</LABEL>
      <LABEL label_id="2">New ADMIN Password</LABEL>
      <LABEL label_id="3">Password :</LABEL>
      <LABEL label_id="4">Confirm Password :</LABEL>
      <LABEL label_id="5">Apply</LABEL>
  </TEXT>
...

What I want to do is :
xsl :

<xsl:template match="TEXT">
  <xt:document method="html" href="{$file}_{@xml:lang}.{$extension}">
    /* some html code */
    <xsl:apply-templates/> /* i want to put label1 here */
    /* some html code */
   <xsl:apply-templates/> /* i want to put label2 here */
    /* some html code */
   <xsl:apply-templates/> /* i want to put label3 here */
    /* some html code */
   <xsl:apply-templates/> /* i want to put label4 here */
    /* some html code */
   <xsl:apply-templates/> /* i want to put label5 here */
    /* some html code */
  </xt:document>
</xsl:template>

The whole idea is to substitute labels (some text in natural language) in html
pages by their traduction in another language, leaving html code untouched.

This xsl processing matches all the labels at each time (which is right
according to what is written
but that's not what I tempted to do...)

I already got a way to do that : i divide the whole html page into blocks (with
<BLOCK> tags in the xml
file) but I'm wondering if there is an easier way to do that by specifying
which labels to put at a given place.

I hope it was clear enough...

Any help would be GREATLY appreciated...

Benj.




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.