Re: [xsl] [OT] Can XML elements contain text as well as other elements?

Subject: Re: [xsl] [OT] Can XML elements contain text as well as other elements?
From: "Simon Kelly" <kelly@xxxxxxxxxx>
Date: Thu, 22 May 2003 09:35:41 +0200
Simon

That would do the trick.

Thanks

Simon

----- Original Message -----
From: "S Woodside" <sbwoodside@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, May 21, 2003 8:59 PM
Subject: Re: [xsl] [OT] Can XML elements contain text as well as other
elements?


> What kind of schema? ....
>
> I think in RNG (relax ng) you could do something like this:
>
> <element name="para">
>    <zeroOrMore>
>      <interleave>
>        <text/>
>        <ref name="highlight"/>
>      </interleave>
>    </zeroOrMore>
> </element>
>
> simon
>
> On Wednesday, May 21, 2003, at 09:04  AM, Simon Kelly wrote:
>
> > So this means I could have something like.
> >
> > <!--
> > <para>Test for the <highlight type="flashing>element</highlight> within
> > text.</para>
> > -->
> >
> > But how would you define that in a Schema?  I'm a bit confused about
> > that
> > part.
> >
> > Thanks fo rthe reply,
> >
> > Cheers
> >
> > Simon
> >
> >
> >
> >
> > ----- Original Message -----
> > From: "Zink, Juergen" <Juergen.Zink@xxxxxxxxxxxxxxxxxxxx>
> > To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> > Sent: Wednesday, May 21, 2003 2:55 PM
> > Subject: AW: [xsl] [OT] Can XML elements contain text as well as other
> > elements?
> >
> >
> >> Hi Simon,
> >>
> >> <snip>
> >>> Can you mix text in with the child elements within an element node?
> >>> Or
> > do
> >>> the text elements have to be in a leaf element node?
> >>
> >> Yes you can mix, even more than one text node is possible.
> >>
> >> Juergen
> >>
> >>
> >>
> > ***********************************************************************
> > *****
> > *
> >> Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> >> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> >> eMail irrtuemlich erhalten haben, informieren Sie bitte sofort den
> >> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
> >> sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
> >>
> >> This e-mail may contain confidential and/or privileged information.
> >> If you are not the intended recipient (or have received this e-mail
> >> in error) please notify the sender immediately and destroy this
> >> e-mail.
> >> Any unauthorized copying, disclosure or distribution of the material
> >> in this e-mail is strictly forbidden.
> >>
> > ***********************************************************************
> > *****
> > *
> >>
> >>
> >>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >>
> >>
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
> >
>
> --
>       anti-spam: do not post this address publicly
> www.simonwoodside.com -- 99% Devil, 1% Angel
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread