[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [xml-dev] Contents of a tag
> Is it possible when you have a XML-file containing the following tags:
> <TITLE> ... </TITLE> to get retrieve TITLE in the XSL?
> F.e.: In the XML there are <TITLE> ... </TITLE>, <SONG> ...
> </SONG>, <ARTIST> ... </ARTIST>. They should look almost the
> same in the resulting HTML, except that each another element
> should be retrieved. So I wanna make one template to match
> all three and I'm not allowed to use attributes.
> Does there exist something like:
> <xsl:template match="TITLE|SONG|ARTIST">
> output="TITLE" with TITLE the result of some XSL-statement?
Just use <xsl:value-of select="."/>.
(But please, don't come back to the list with your next XSLT question:
that's not the way to learn a new programming language. Look at some
tutorial sites, or buy a book.)