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

Re: RE : translation string to element

Subject: Re: RE : translation string to element
From: Peter Davis <pdavis152@xxxxxxxxx>
Date: Wed, 17 Apr 2002 02:34:47 -0700
Re: RE :  translation string to element
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alright, fair enough.  Next question: exactly what determines that "fine" 
becomes "<tag>fine</tag>"?

Also, you cannot access entities directly.  In XML, the entity "&mood;" is 
defined in the XML file's DTD and is expanded to the value of the entity by 
the XML parser.  So as far as XSLT is concerned, "&mood;" is not special; the 
XSLT only sees the value of "&mood;", whatever that might be.  If you simply 
want to replace "&mood;" with "not fine", then this is done in the DTD, and 
the XSLT doesn't have to do anything.

On Wednesday 17 April 2002 02:22, Nicolas Mazziotta wrote:
> That's not exactly that:
> Consider the following .xml file:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <root>
>         I am fine
> </root>
>
> I want to create a templatethat would produce the following output:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <root>
>         I am <tag>fine</tag>
> </root>
>
> or
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <root>
>         I am &mood;
> </root>
>
> or
>
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <root>
>         I am not fine
> </root>

- -- 
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8vUG6NSZCJx7tYycRAsFdAKCX9zMv0lkkaRdPt/fF0S9r3JKb+ACeIGhK
ceoTjH+4dUSTuqNKugYNSGQ=
=RjxQ
-----END PGP SIGNATURE-----


 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.