Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > attribute question and query strings

Reply
Thread Tools

attribute question and query strings

 
 
bjam
Guest
Posts: n/a
 
      03-13-2005
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.xm l&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>
---...

 
Reply With Quote
 
 
 
 
David Carlisle
Guest
Posts: n/a
 
      03-13-2005

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

David
 
Reply With Quote
 
 
 
 
bjam
Guest
Posts: n/a
 
      03-13-2005
David,

Your the best! Thanks for this.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complex attribute with Attribute and simpletype kanpeter XML 0 10-26-2010 09:41 AM
attr_reader, default attribute value, and rdoc of attribute dkmd_nielsen Ruby 6 11-26-2008 05:40 PM
Difference between empty attribute and undefined attribute jpdogg@gmail.com Javascript 4 04-24-2007 02:52 PM
Strings, Strings and Damned Strings Ben C Programming 14 06-24-2006 05:09 AM
Strings for Strings Query g ASP General 2 11-08-2003 01:13 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57