Tuesday, Feb 8, 2005, 11:04 AM
XSLTO: Mapping XSLT to Objects
11 comments on this post
Avi Lachmish:
Thanks.
Tuesday, Feb 22, 2005, 1:06 AM
Ryan Cox:
ryancox@mailblocks.com
Wednesday, Mar 2, 2005, 11:37 PM
Tim:
When the Age method is invoked, the XPathNavigator is sitting ont the Age element. If you don't call the ApplyTemplates method, the XSLT transformation process will not continue. You can simply use the navigator to drill down and get the text value yourself.
Or, if you make the argument to the Age method an XmlSerializable class like this:
[XmlRoot("Age", Namespace="...")] // put namespace URI here
public class Age
{
[XmlText]
public string Value;
}
the engine will deserialize to that type and give you an object representing the current subtree. You can then simply access the value.
Tim-
Thursday, Mar 3, 2005, 12:04 PM
ijoxnhr vywsnh:
Thursday, Mar 8, 2007, 11:53 PM
jdcnft srbipck:
Thursday, Mar 8, 2007, 11:53 PM
hvkm mtgkphl:
Thursday, Mar 8, 2007, 11:54 PM
ilpnqcf uaxvjet:
Thursday, Mar 8, 2007, 11:54 PM
iarpejms vqtlbhfun:
Monday, Apr 28, 2008, 1:22 AM
qvzfumjxo vdpxwbzo:
Monday, Apr 28, 2008, 1:22 AM
xwgeilqks rtncmp:
Monday, Apr 28, 2008, 1:24 AM
mekywjxoh tbhe:
Monday, Apr 28, 2008, 1:24 AM




