|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
displaying attributes as text in xslt
I made a xml document and some of the text I want to display in xslt is inside attributes. how do I display the text inclosed in the attributes? I would hate to have to redo everything and turn the attributes into elements... thank you! ^_^
|
|
#2
|
|||
|
|||
|
Say that your data is
... <destination country="us"> New York </destination> ... You can access country by <xsl:value-of select="destination/@country" /> |
|
#3
|
|||
|
|||
|
Well, that was not what I was expecting as an answer. The problem is to Display the Target XML with some attributes.
Example: Source <MESSAGE> <COLOR>green</COLOR> <SUBJECT>sdfsdfs</SUBJECT> .. </MESSAGE> Destination: <P COLOR="<value-of-COLOR>"> ---> How ? .... |
|
#4
|
|||
|
|||
|
Quote:
------------ Sorry, I was searching for this thing, The answer was correct.. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > displaying attributes as text in xslt |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|