This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

How to parse an element with content and child-elements


Hi,
I want to parse XML-elements wich contain text AND other elements (Example). the stylesheet should print the value
of the element (Example: content), and if it passes a child element it should format this with new rules. it is important that the child element stays at his place in the text.
 
Im sure this is possible, but i have no idea how to realize :(
 
My Example:
 
DTD:
<!ELEMENT content ( #PCDATA | other-content ) >
 
 
XML-File:
 
<xml-file>
<content>
    blablabla bla bla bla bla  
        <other-content>blub etc etc etc</other-content> 
    bla bla bla
</content>
</xml-file>
 
 
 
I want to format this XML code into HTML:
 
<p>
blablabla bla bla bla bla 
    <br/>
       <font color="red">blub etc etc etc</font>
    <br/>
bla bla bla
</p>
 
thanks for any help
 
    Kai Ritterbusch
 
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]