Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > How to make an html table out of that ?

Reply
Thread Tools

How to make an html table out of that ?

 
 
Rolf Kemper
Guest
Posts: n/a
 
      12-04-2004
Dear all
please find below a part of code I have returned by sql server. It
describes an error condition as usual in two lines. The additional
text is from the application and should be on top. What I would like
to achive is a simle table with 3 lines:
1st the simple text
2nd MSSSQLError tag 1
3rd MSSSQLError tag 2

I tried varous attempts to select the attributes of the MSSQLError
tags.
In any case I get never everything. My last trisl was to use the
copy-of.
This basically throughs the MSQMLError Tags into the HTML , but only
the first line is shown by IE (probable it has the problem with the
second tag <?MSSQLError ....


##################### test xml below ###############

<NewBlock xmlns:sql="urn:schemas-microsoft-comml-sql">


<?MSSQLError HResult="0x80040e2f" Source="Microsoft OLE DB Provider
for SQL Server" Description="The statement has been
terminated."?><?MSSQLError HResult="0x80040e2f" Source="Microsoft OLE
DB Provider for SQL Server" Description="INSERT statement conflicted
with COLUMN FOREIGN KEY constraint
'FK_BlocksTec_tab_const_ProcessTec_tab'. The conflict occurred in
database 'libdb', table 'const_ProcessTec_tab', column
'ProcessTec_ID'."?>COULD NOT INSERT Block

</NewBlock>

################# xml end ##########################


any help is highly welcome

Rolf


So some help is highly welcome.
 
Reply With Quote
 
 
 
 
Joris Gillis
Guest
Posts: n/a
 
      12-05-2004
> please find below a part of code I have returned by sql server. It
> describes an error condition as usual in two lines. The additional
> text is from the application and should be on top. What I would like
> to achive is a simle table with 3 lines:
> 1st the simple text
> 2nd MSSSQLError tag 1
> 3rd MSSSQLError tag 2
>
> I tried varous attempts to select the attributes of the MSSQLError
> tags.
> In any case I get never everything. My last trisl was to use the
> copy-of.
> This basically throughs the MSQMLError Tags into the HTML , but only
> the first line is shown by IE (probable it has the problem with the
> second tag <?MSSQLError ....


Hi,

AFIAk, you cannot access the 'attributes' of a processing instruction, because it cannot have any. A processing instruction consists of a name and a string value.
Wouldn't it be easier to use regular elements in stead of PIs?

regards,

--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-v...i?userid=38041)
Ceterum censeo XML omnibus esse utendum
 
Reply With Quote
 
 
 
 
Richard Tobin
Guest
Posts: n/a
 
      12-05-2004
In article <>,
Joris Gillis <> wrote:

>AFIAk, you cannot access the 'attributes' of a processing instruction,
>because it cannot have any.


This is true at the XML level. But applications often use attribute
syntax in the string value of a processing instruction (consider
stylesheet PIs for example, or the not-technically-a-PI XML
declaration). Whether any APIs provide support for parsing them, I
don't know.

-- Richard
 
Reply With Quote
 
Joris Gillis
Guest
Posts: n/a
 
      12-05-2004
>> AFIAk, you cannot access the 'attributes' of a processing instruction,
>> because it cannot have any.

>
> This is true at the XML level. But applications often use attribute
> syntax in the string value of a processing instruction (consider
> stylesheet PIs for example, or the not-technically-a-PI XML
> declaration). Whether any APIs provide support for parsing them, I
> don't know.
>


Yes, you're right indeed.
I was silently assuming that Rolf is dealing with an XLST. When he tells about an attempt with 'copy-of' I thought that would be an xsl element. In XSLT you're bound to stay at the DOM Level. So you cannot access PI attributes. (Please correct me if I'm wrong)

regards,
--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-v...i?userid=38041)
Ceterum censeo XML omnibus esse utendum
 
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
Make HTML Table Invisible chuckdfoster ASP .Net 2 12-06-2005 04:57 PM
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM
Help with XSL to make HTML table Virginia Kirkendall XML 6 10-20-2004 07:31 PM
TABLE, DIV, SPAN outlining hell! Who can make sence out of this? Michel HTML 1 06-17-2004 04:30 PM
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table. David Williams ASP .Net 2 08-12-2003 07:55 AM



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