You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ma...@seb.se on 2001/04/24 14:37:16 UTC

Generating a tag

Hi all, this might not be a specefic Cocoon question, if so I'm sorry.

I'm trying to generate a HTML <OBJECT> tag like:

<OBJECT>
 <PARAM VALUE="mms://someserver/some.asf">
</OBJECT>

when I do that like:

<OBJECT>
 <PARAM VALUE="<xsl:value-of select="/page/show/url" />">
</OBJECT>

I get the following error:

org.xml.sax.SAXParseException: The value of attribute "VALUE" must not
contain the '<' character

I've tryed to use <xsl:text>, <xsl:variable> but nothing works, I've even
tryed to add an extra field to my DTD and generating the whole <PARAM> - tag
(desperate)... but then nothing gets generated between the
<object></object>.

Help, anyone?

Thanx,
- Magnus

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Generating a tag

Posted by Chris Joelly <ch...@knapp.com>.
On Tue, Apr 24, 2001 at 02:37:16PM +0200, Magnus.B.Larsson@seb.se wrote:
> Hi all, this might not be a specefic Cocoon question, if so I'm sorry.
> 
> I'm trying to generate a HTML <OBJECT> tag like:
> 
> <OBJECT>
>  <PARAM VALUE="mms://someserver/some.asf">
> </OBJECT>
> 
> when I do that like:
> 
> <OBJECT>
>  <PARAM VALUE="<xsl:value-of select="/page/show/url" />">
> </OBJECT>
>

use:

<object>
  <param>
    <xsl:attribute name="value">
	  <xsl:value-of select="/page/show/url"/>
	</xsl:attribute>
  </param>
</object>

cheers

-- 
KNAPP Logistics Automation  http://www.knapp.com
Ing. Christian Jölly        Tel/FAX: (++43) 316 / 495 1926 / 495 394
Günter-Knapp-Straße 5-7     A-8075 Hart bei Graz

Re: Generating a tag

Posted by Elmar Christen <el...@elmartec.de>.
try this ( in your xsl):
<xsl:element name="object">
    <xsl:element name="param">
       <xsl:attribute name="value"><xsl:value-of 
select="mms:whatsoever.asf"/></xsl:attribute>
    </xsl:element>
</xsl:element>

your failed cause of  a combination of chars (a "<" some stuff and 
another "<") which the parser might "misunderstood", therefore the 
exception.



Magnus.B.Larsson@seb.se wrote:

> Hi all, this might not be a specefic Cocoon question, if so I'm sorry.
> 
> I'm trying to generate a HTML <OBJECT> tag like:
> 
> <OBJECT>
>  <PARAM VALUE="mms://someserver/some.asf">
> </OBJECT>
> 
> when I do that like:
> 
> <OBJECT>
>  <PARAM VALUE="<xsl:value-of select="/page/show/url" />">
> </OBJECT>
> 
> I get the following error:
> 
> org.xml.sax.SAXParseException: The value of attribute "VALUE" must not
> contain the '<' character
> 
> I've tryed to use <xsl:text>, <xsl:variable> but nothing works, I've even
> tryed to add an extra field to my DTD and generating the whole <PARAM> - tag
> (desperate)... but then nothing gets generated between the
> <object></object>.
> 
> Help, anyone?
> 
> Thanx,
> - Magnus
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
> 
> 
> 


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>