xsl-list
[Top] [All Lists]

Re: [xsl] handling tags and PIs within a macro

2007-10-23 09:45:26

Oh my gosh, this change is so overwhelming....

it'll be OK, don't worry;-)


Just change your source so instead of 

 <j_entry cmd="admin/user/mail" rel="Mail Server"
 t="integer" ver="4.0"
 val="30">
    <dsc>Quota of a mailbox in Megabytes. The default
 value is taken 
 from the mail
      server default quota (see entry <xref
 linkend='mta_quota'
        xrefstyle='template:%t on page %p'/>).</dsc>
 </j_entry>

you have the same information in XML:


 <j_entry>
 <cmd>admin/user/mail</cmd>
 <rel> Mail Server</rel>
 <t>integer</t>
 <ver>4.0</ver>
 <val>30</val>
  dsc>Quota of a mailbox in Megabytes. The default
 value is taken  from the mail
      server default quota (see entry <xref
 linkend='mta_quota'
        xrefstyle='template:%t on page %p'/>).</dsc>
 </j_entry>


then use a template as I suggested earlier that picks out these
elements, and you are done.

As Wendell says, if you have a DTD or schema then you may also need to
chaneg that to match, but XSLt doesn't need either of these, so you can
ignore that problem for now.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

--~------------------------------------------------------------------
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>
--~--