attribute question and query strings

B

bjam

Hi, I am hoping someone can answer the following question it seems when
I put in an & in the query string to be translated as the link in the
XML to HTML I get an error, just using the ? mark is fine but one I add
additional paramaters to the XML it gives an error... any ideas? Below
are the details. Thanks in advance for your help with this.

B

I have the following XML


XML
===========

<file>
<display
href='xml_display.cgi?file=xdo_avail_row_counts.xml&xsl=dqm_general.xsl'>xdo
avail row counts</display>
</file>

STLYE SHEET
================

for some reason the following block of code in IE gives the following
error

<a>
<xsl:attribute name="href"><xsl:text/>
<xsl:value-of select="@href" />
</xsl:attribute>

<xsl:attribute name="style"><xsl:text/>
<xsl:value-of select='"text-decoration:none"' />
</xsl:attribute>

<font color="blue" face="arial"><xsl:value-of select="text()"
/></font>
</a>

ERROR
=============
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error
and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

A semi colon character was expected. Error processing resource
'http://lx-dgdev51:8080/cgi-bin/index.cgi'. Line 33, Positi...

<display
href='xml_display.cgi?file=capacity_count.xml&xsl=dqm_general.xsl'>capacity
count</display>
---...
 
D

David Carlisle

your input is not well formed &'s must be quoted, eg as &amp; in XML
element and attribute content.

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top