xsl-list
[Top] [All Lists]

RE: Is it possible to modify the source-tree?

2005-09-12 16:03:21
My input looks like this:
<a>
   <b offset="5">
      <reg>reg_1</reg>
      <reg href="REGDEF1"/>
   </b>

  <regdef name="REGDEF1">
      <reg>reg_10</reg>
      <reg>reg_20</reg>
  </regdef>
 
</a>

I want the <reg href="REGDEF1"/> be replaced with the definition defined above, 
namely :
      <reg>reg_10</reg>
      <reg>reg_20</reg>

So to the XSLT parser, the input looks like:
<a>
   <b offset="5">
      <reg>reg_1</reg>
      <reg>reg_10</reg>
      <reg>reg_20</reg>
   </b>
</a>

The output is based on the attributes of the <b> node and the siblings. If I use
<xsl:apply_templates> I will have to pass a whole bunch of info to the template.

Thanks,
Anupam.


--- Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:

The simple answer is: no.

You'll have to explain the requirement more carefully, I can't really
understand from this what you're trying to do.

Michael Kay
http://www.saxonica.com/ 




                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>