At Friday, 2 February 2001, you wrote:

>Thanks a lot.
>But maybe it's not the solution.
>
>I want convert HTML to Latex.
>In the <meta> tags is the "Author" but there are more <meta> tags.
>
>for example:
>----------
>  <meta http-equiv="Content-Type" content="text/html; charset=iso-
8859-1"/>
>   <meta name="GENERATOR" content="Mozilla/4.7 [en] (X11; I; Linux 
2.2.13 i686)
>[Netscape]"/>
>   <meta name="Author" content="Der Autor"/>
>   <meta name="Description" content="Eine kleine beschreibung"/>
>   <meta name="Keywords" content="schlusselwort1, schlusselwort2"/>
>   <meta name="Classification" content="classification"/>     
>
>If I have the xpath expression in the select statment, it's possible
>to define the order of execution.

Yes, but all the XSLT implementations I have seen only allow
position() within an <xsl:for-each>, not within a template match
of an XPath node group. 

>But the <xsl:template match="meta"> will match ALL the <meta> tags.
>
>Isn't there a way to drop the other <meta> tags without xsl:if?

Logically, no. Even if you were processing this by hand with the human
eye, your brain still has to perform a test for each <meta> to say
whether or not it has to be processed (or dropped).

Which one did you want to use, just name="author"? Be careful
because it could be author or Author or AUTHOR...

///Peter







Reply via email to