OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[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?

If those are the only 3 tags in ur XML then use <xsl:value-of select="."/>.

Questions of this type would be answered better from a list such as the


The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>