Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Multiple Elements

From: Peter Flynn <peter.nosp@-.--------.-->
To: NULL
Date: 6/1/2008 4:14:00 PM

Michael.Ruehling@t... wrote:
> 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.

Yes, it is possible (but unusual) to have more than one ueberschrift
in a chapter.

I think you may be confusing the ueberschrift with the concept of a
container like <section> or <subsection>. XML is normally built on a
hierarchical model or containers, unlike (eg) LaTeX, where headings
are simply interruptions to the flow of text (eg \section{}, not
\begin{section}...\end{section}).

<!DOCTYPE buch [
<!ELEMENT buch (kapitel)+>
<!ELEMENT kapitel (ueberschrift,text+,unterkapitel*)>
<!ELEMENT ueberschrift (#PCDATA)>
<!ELEMENT unterkapitel (ueberschrift,text+)>
<!ELEMENT text (#PCDATA)>
]>
<buch>
  <kapitel>
    <ueberschrift></ueberschrift>
    <text></text>
    <text></text>
    <text></text>
    <unterkapitel>
      <ueberschrift></ueberschrift>
      <text></text>
      <text></text>
      <text></text>
    </unterkapitel>
    <unterkapitel>
      <ueberschrift></ueberschrift>
      <text></text>
      <text></text>
      <text></text>
    </unterkapitel>
    <unterkapitel>
      <ueberschrift></ueberschrift>
      <text></text>
      <text></text>
      <text></text>
    </unterkapitel>
  </kapitel>
  <kapitel>
    <ueberschrift></ueberschrift>
    <text></text>
  </kapitel>
</buch>

///Peter


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