KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
At runtime I can have two formats of a XML file: <root> <diagram> <graph color= "#ff00ff"> <xaxis>1 2 3 12 312 3123 1231 23 </xaxis> <yaxis>1 2 3 12 312 3123 1231 23 </yaxis> </graph> </diagram> </root> <root> <diagram> <graph> <xaxis>1 2 3 12 312 3123 1231 23 </xaxis> <yaxis>1 2 3 12 312 3123 1231 23 </yaxis> </graph> </diagram> </root> Depending on the presence of the color attribute i have to process the values of the xaxis and yaxis. I need to do this using XSL. Can anyone help me in hinting me a snippet where i can check these condtions. I tried using <xsl: when test="graph[1]/@color"> //some processing here using graph[1]/@color values </xsl:when> i got an error ...
Tags (comma-separated)
Save Edits
Cancel