| Subject: [xsl] Converting an attribute value into an XML fragment From: "Joel P Thornton" <joelt@xxxxxxxxxxxxx> Date: Mon, 9 Apr 2001 11:14:30 -0700 | 
I am trying to convert the value of an attribute into an XML fragment in
XSL.  Here is what my XML looks like:
  <row
    title="XMLContent"
    value="<section header="no">Testing
testing</section>introhunk<br/>blah"
  />
So, when converted into an XML fragment, row/@value should look like this:
  <section header="no">Testing testing</section>introhunk<br/>blah
And I would like to have my XSL transform this <row> into something like
this in the XML result tree:
  <item title="XMLContent">
    <section header="no">
      Testing testing
    </section>
    introhunk
    <br/>
    blah
  </item>
I am doing this so I can store XML fragments in a db table, then have those
fragments be merged into the XML result tree of an XML document that
contains references to records within that table.  [Note the choice of an
<item> tag is just for demonstration above.]
Any ideas on how to make this happen?
Thanks ..
joel
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] One on One!, Sebastian Rahtz | Thread | Re: [xsl] Converting an attribute v, Jeni Tennison | 
| Re: [xsl] XSLT Programmer's Referen, Kurt Cagle | Date | [xsl] inserting space in xsl:value-, Java XML | 
| Month |