Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Multiple Elements

From: Michael.Ruehling@--------.--
To: NULL
Date: 6/1/2008 3:16:00 PM

Hi,
I am sorry for not beeing totally precise.
The BUCH or KAPITEL function works fine. What 
makes the problem ist the UEBERSCHRIFT-thing.

XSLT-Code says UEBERSCHRIFT can be more than one 
(the reference part of my book says so). And I want 
to have more than one UEBERSCHRIFT in one KAPITEL. 
Even more than one ZWISCHENUEBERSCHRIFT and TEXT.
I don't want to have only one UEBERSCHRIFT and ZWISCHENUEBERSCHRIFT 
and TEXT Part in my KAPITEL, because, it makes no sense 
to have an extra KAPITEL for a short TEXT which belongs to a 
UEBERSCHRIFT.

M.


On Sun, 01 Jun 2008 10:55:04 +0100, David Carlisle
<david-news@d...> wrote:

>Michael.Ruehling@t... wrote:
>> Hi,
>> I've got another question. 
>> My Code works fine now and I've tried some other functions. 
>> XSLT-Code is now: 
>> 
>> 
>> <!DOCTYPE BUCH [
>
>That's the dtd not the XSLT, but I assume the xslt is similar to the 
>code posted in the earlier thread.
>
>    <H3>
>               <xsl:value-of select="ZWISCHENUEBERSCHRIFT"/>
>               </H3>
>
>
>the  select="ZWISCHENUEBERSCHRIFT" does select all those elements but 
>value-of (in xslt 1) just gives the string value of the first.
>
>When rendering a document structure to html as here normally you dont 
>want to use for-each and value-of at all, but rather apply-templates, so 
>that the output structure mirrors the input structure.
>
>so you don't need a template matching BUCH as you want the default 
>processing there
>
>
>but you do want something like
>
><xsl:template match="UEBERSCHRIFT">
>   <h1>
>     <xsl:apply-templates/>
>    <h1>
></xsl:template>
>
>
><xsl:template match="ZWISCHENUEBERSCHRIFT">
>   <h3>
>     <xsl:apply-templates/>
>    <h3>
></xsl:template>
>
>
><xsl:template match="TEXT">
>   <p>
>     <xsl:apply-templates/>
>    <p>
></xsl:template>
>
>David



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent