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

RE: Can I put a variable to be interpreted in an xml

Subject: RE: Can I put a variable to be interpreted in an xml node?
From: Michael Müller-Hillebrand <info@xxxxxxxxxxxxx>
Date: Wed, 14 Jul 2004 16:37:42 +0200
framescript xml
On 14.07.2004 (16:06 Uhr +0200), Bart Claeys wrote:

>Hi Michael,
>
>Thanks for your reply.
>So, what you're saying is that I shouldn't use any HTML tags in an XML
document?
>Or are you saying that I should be using strickt XHTML?
>
>The fact is that I can redesign the source document, but I've no clue how.

It is definitely not Michael Kay's part to explain that.

>I need to put a sentence in multiple languages in
>the XML document and one of the words should be a link, as follows:
>
>Forgot your password? Fill in <a href="{$link}">this form</a> to retrieve
your password.


How about:

<sentences>
<sentence lang="en">Forgot your password? Fill in [[[this form]]] to retrieve
your password.</sentence>
<sentence lang="de">Haben Sie das Passwort vergessen? Bitte f|llen Sie
[[[dieses Formular]]] aus, um ihr Passwort zu erhalten.</sentence>
</sentences>

You can then use substring-before() and substring-after() to split the text
and fill in the necessary tags for the hypertext link.

- Michael

--
________________________________________________________________
Michael M|ller-Hillebrand, Dipl.-Ing.    <http://cap-studio.de/>
    FrameMaker, FrameScript, XML/XSL,... Publishing-Lvsungen

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.