Undrium Posted January 12, 2011 Posted January 12, 2011 I've been searching through the net in general for a substitute of value-of. Is it possible to for instance <xsl:value-of select="@name"/> shorter?Since XSLT is tag-oriented I doubt there is a shortcut, would be nice to know for sure, though.Thanks,Undrium
boen_robot Posted January 12, 2011 Posted January 12, 2011 Depends... if you mean a shortcut for writing out a text of an element, no. There's no shorter way than: <element><xsl:value-of select="@value" /></element> But if you mean writing out the value of an attribute, the shortest way is with an Attribute Value Template, i.e. <element attribute="{@value}" />
Undrium Posted January 12, 2011 Author Posted January 12, 2011 Cheers for the reply, boen_robot, I take it as this has been solved now.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.