xsl-list
[Top] [All Lists]

AW: question

2004-11-05 02:39:25
Hi Juliet,

Don't know, if I have understood you correctly, but I looks as if you are 
trying to output the value of your "strColVal" variable within your "name" 
attribute.


I think you should change the line
        <col name="$strColName">
to
        <col name="{$strColName}">
, since you want to put in the actual value of the variable instead of the 
string "$strColName".

Wbr,
Roman   

-----Ursprüngliche Nachricht-----
Von: Juliet Despi [mailto:jdespi(_at_)ntsp(_dot_)nec(_dot_)co(_dot_)jp] 
Gesendet: Freitag, 5. November 2004 10:11
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Betreff: RE: [xsl] question

hello Roman and Manpreet,

Thanks for the reply.
I got no errors now.

But I have another question in the XSL file,
 <xsl:variable name="strColName"
     select="<the value of string before ':'>"/> <- this would be "Rx
64b&lt; &lt;128b " according to my xml file
 <col name="$strColName">
     <xsl:value-of select="$strColVal"/> <the value of strColVal is "0">
according to my xml file
 </col>

But in this format, I got an output of
  <col name="$strColName">0</col>

Is there a way that the output will become like this?
  <col name="Rx 64b&lt; &lt;128b">0</col>

Thanks,
Juliet

-----Original Message-----
From: Huditsch Roman [mailto:Roman(_dot_)Huditsch(_at_)lexisnexis(_dot_)at]
Sent: Friday, November 05, 2004 4:27 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: AW: [xsl] question


Hi,

I think it should rather be &lt;

wbr,
Roman

-----Ursprüngliche Nachricht-----
Von: Manpreet Singh [mailto:singhm(_at_)quark(_dot_)co(_dot_)in]
Gesendet: Freitag, 5. November 2004 09:17
An: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Betreff: RE: [xsl] question
Wichtigkeit: Hoch

hi,
  Use &lt in place of < in your xml.
Regards
Manpreet

-----Original Message-----
From: Juliet Despi [mailto:jdespi(_at_)ntsp(_dot_)nec(_dot_)co(_dot_)jp]
Sent: Friday, November 05, 2004 1:44 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] question


hello,

    I am pretty new to xml and xsl.

    I have an xml file in the following format:
    <ne_resp cmd="show port counters">
        <line>Rx 64b< <128b  :           0 |TxSingleCollPkt:
0</line>
    <ne_resp>

    I want to ouput an xml by using XSLT.

    And this is my desired output:
    <ne_resp cmd="show port counters">
         <row>
             <col name="Rx 64b< <128b">0</col>
             <col name="TxSingleCollPkt">0</col>
         </row>
    </ne_resp>

Unfortunately, I got this error:
    parser error : StartTag: invalid element name in analyzing the xml file
due to '<' in "Rx 64b< <128b"

How can I make the start tag '<', a literal character '<' so that I may able
to acquire my desired output?

Thanks in advance,
Juliet

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.776 / Virus Database: 523 - Release Date: 10/12/2004




--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.776 / Virus Database: 523 - Release Date: 10/12/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.776 / Virus Database: 523 - Release Date: 10/12/2004




--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--



<Prev in Thread] Current Thread [Next in Thread>