|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
xsl:copy-of using a VariableReference
I've tried using this method
Code:
<xsl:copy-of select="page/body[@name=$namesource]" /> And that works, but it includes the entire element: Code:
<body name="foo"> <b>this is the body named foo</b> </body> All I would like it to display is the inner content of the <body> tag (and still retain the html formatting) like so: Code:
<b>this is the body named foo</b> How can I extract only the element content (and still retain the html tags inside) while using a VaraibleReference |
|
#2
|
|||
|
|||
|
You'll kick yourself!
Code:
<xsl:copy-of select="page/body[@name=$namesource]/b" /> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > xsl:copy-of using a VariableReference |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|