|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
xsl:copy-of problem
Hi,
I've the following node structure in my xml: <section> <body xmlns="http://www.w3.org/TR/REC-html40"> <p align="center"><img border="0" src="xyz.jpg" width="360" height="146"/></p> </body> </section> In my xsl I need I read this as: <xsl:for-each select="sch:section"> <xsl:apply-templates select="html:body/*"/> </xsl:for-each> <xsl:template match="html:body/*"> <xsl:copy-of select="." /> </xsl:template> I need to replace the attribute width="360" of <img> in the <body> node with width="310". How do I go about it? Thank you in advance. Pats |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > xsl:copy-of problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|