You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Morten Primdahl <mo...@caput.com> on 2000/05/17 12:56:42 UTC
Nesting <'s and >'s
Hi
Suppose I have the XML file:
<?xml version="1.0"?>
<?xml-stylesheet href="login_std.xsl" type="text/xsl"?>
<?xml-stylesheet href="login_wml.xsl" type="text/xsl" media="wap"?>
<?cocoon-process type="xslt"?>
<dummy>
<action>http://machine.domain.top/</action>
</dummy>
With the appropriate XSLT, I want to produce the following
HTML:
<html>
<body>
<form action="http://machine.domain.top/">
<!-- placed stuff here -->
</form>
</body>
</html>
How do I prevent ending up with something like
<form action="<xsl:value-of select="action"/>">
in the XSL file?
Thanks
Morten
--
Morten Primdahl Caput ApS Tel +45 33 12 24
42
morten@caput.com Nygade 6 Fax +45 33 91 24 42
http://www.caput.com DK-1164 Kbh K
Re: Nesting <'s and >'s
Posted by Paul Russell <pa...@luminas.co.uk>.
On Wed, May 17, 2000 at 12:56:42PM +0200, Morten Primdahl wrote:
> How do I prevent ending up with something like
> <form action="<xsl:value-of select="action"/>">
> in the XSL file?
Really a XSLT thing - spec at:
http://www.w3.org/TR/xslt
...but since I'm feeling generous...
<xsl:stylesheet>
<xsl:template match="dummy">
<form action="{action}">
<!-- blaa -->
</form>
</xsl:template>
</xsl:stylesheet>
--
Paul Russell <pa...@luminas.co.uk>
Technical Director, http://www.luminas.co.uk
Luminas Ltd.
Re: Nesting <'s and >'s
Posted by Jari Aarniala <ja...@ioboxgroup.com>.
----- Original Message -----
From: Morten Primdahl <mo...@caput.com>
To: <co...@xml.apache.org>
Sent: Wednesday, May 17, 2000 1:56 PM
Subject: Nesting <'s and >'s
: How do I prevent ending up with something like
: <form action="<xsl:value-of select="action"/>">
: in the XSL file?
<form action="{action}">
That should do the trick.
Jari