Jump to content

marina

Members
  • Posts

    2
  • Joined

  • Last visited

marina's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. It doesn't work.It just works when I tried this:<xsl:template match="marca"><marca><xsl:element name="href"><xsl:value-of select="@href"/></xsl:element><xsl:apply-templates/></marca></xsl:template>But how can I simplify, if I want to transform all the attributes of a xml doc, into child elementes of the element that tey were attributes?
  2. How can I convert attributes to child elements?<marca href="http://www.hp.pt">HP</marca>to<marca>HP <href>http://www.hp.pt</href></marca>
×
×
  • Create New...