|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] two questions
(I am a digester and would appreciate a direct response to n8_shaw@xxxxxxxxx as I am under a deadline! Thanks.) Hi all. I have two questions. 1) I have an XML doc that has several non-distinct values under one distinct element. <dsml:attr name="cn"><dsml:value>David Godbey</dsml:value><dsml:value>David J Godbey</dsml:value><dsml:value>David J Godbey-1</dsml:value><dsml:value>dgodbey</dsml:value></dsml:attr> What I need to do is figure out a way to access the node that has the "-1" in it. I would like to do this in a template rule, i.e. <xsl:apply-templates select="dsml:attr[@name='cn']???" /> but I have no idea how to do that. Can I do that? If not, how else can I get to that value? 2) I have an element that contains a list of values separated by a comma "," and then a colon ":" <dsml:attr name="userClass"> <dsml:value>Organization: CI-1, Employer: SAICIS</dsml:value></dsml:attr> Again, I would like to somehow make a template rule to access both of these as separate templates, i.e. <xsl:apply-templates select="dsml:attr[@name='userClass']???" /> but I have no idea how to do that. Can I do that? If not, how else can I get to that value? Thanks all! --Nathan __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








