| | |
XML Transforming Help
Please support our XML, XSLT and XPATH advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2006
Posts: 22
Reputation:
Solved Threads: 0
This is my input.xml file. input.xml
This is my output.xml
output.xml
This is xsl transformer file.
tranformer.xsl
Hi guys, looks at the commented sections in all the three files.
Thanks for any help.. Basically i need help in modifying the transformer file.
So that the <extendedattributes> tag in the input file can be read as and outputted as a sibling to the <ntask> tag in the output file.
Thanks for any hints and idears.
This is my output.xml
output.xml
This is xsl transformer file.
tranformer.xsl
Hi guys, looks at the commented sections in all the three files.
Thanks for any help.. Basically i need help in modifying the transformer file.
So that the <extendedattributes> tag in the input file can be read as and outputted as a sibling to the <ntask> tag in the output file.
Thanks for any hints and idears.
Hm. You should be able to do something like this in your 'Activity' template in the XSL file.
(I haven't tested that, I have no useable XSLT processor on this PC at this moment)
Your input XML file is a bit confusing.. But it does highlight one of the inherant difficulties in XML; showing relationships between sibling nodes (other than order-based relationships)...
I'm not quite sure if I get exactly what you're trying to do though; do you want the ExtendedAttributes in the Transition node with the same "From" attribute as the currently processed Activity node's "Id" attribute, to be placed in the <ntask> output node that's currently being processed?
Post back if that isn't the case.
XML, XSLT and XPATH Syntax (Toggle Plain Text)
<xsl:variable name="get_from"><xsl:value-of select="@Id"/></xsl:variable> <xsl:copy-of select="/Package/Transitions/Transition[@From = $get_from]/ExtendedAttributes"/>
Your input XML file is a bit confusing.. But it does highlight one of the inherant difficulties in XML; showing relationships between sibling nodes (other than order-based relationships)...
I'm not quite sure if I get exactly what you're trying to do though; do you want the ExtendedAttributes in the Transition node with the same "From" attribute as the currently processed Activity node's "Id" attribute, to be placed in the <ntask> output node that's currently being processed?
Post back if that isn't the case.
Plato forgot the nullahedron..
![]() |
Similar Threads
- Transforming xml into pdf (C#)
- Transforming XML with XSLT (HTML and CSS)
- help required for implementing project using JAVA & XML (Java)
- searches appearing as .xml files in windows folder (Windows NT / 2000 / XP)
- Php parser error when xml version is mentioned (PHP)
Other Threads in the XML, XSLT and XPATH Forum
- Previous Thread: XML Transformations
- Next Thread: Xml file extraction query
| Thread Tools | Search this Thread |
api blogger blogging code delete development dynamiccreationofnvariablesinxslt error firstthreecharacterofastringrequired flipbook gdata google html include java link linspire linux microsoft news node openoffice overwrite precedence programming rss standards swf template transform variable w3c web xml xmlnotloading xmlonserver xsl xslt






