You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by CP Hennessy <CP...@iname.com> on 2003/03/18 03:10:27 UTC

How do I .... ?

Hi again,
	My next problem is that I have xml which looks like :
  <text:p text:style-name="Standard"><text:span text:style-name="T1">Name of 
product</text:span><text:tab-stop/><text:tab-stop/><text:tab-stop/><text:span 
text:style-name="T2">the prod name</text:span></text:p>
  <text:p text:style-name="P1"/>
  <text:p text:style-name="Standard"><text:span text:style-name="T1"> 
Composition/ Information</text:span><text:tab-stop/>
<text:span  text:style-name="T3">it contains stuff <text:tab-stop/>
<text:tab-stop/><text:tab-stop/></text:span></text:p>
  <text:p text:style-name="P1"/>
  <text:p text:style-name="Standard"><text:span text:style-name="T1"> 
Supplier</text:span><text:tab-stop/>
<text:span  text:style-name="T3">national supplier <text:tab-stop/>
<text:tab-stop/><text:tab-stop/></text:span></text:p>

And I want to extract the info so that  I can treat the text "the prod name"
which follows "Name of product" in a distinct way from the text "it contains 
stuff" which follows "Composition/Information" e.g.

<H1>Name of product : <i>the prod name </i></H1>
<H2>Composition/Information</H2> 
it contains stuff.
<H2>Supplier</H2>
national supplier

Thanks for any help you can give,
CPH