•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the XML, XSLT and XPATH section within the Software Development category of DaniWeb, a massive community of 391,660 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,818 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our XML, XSLT and XPATH advertiser:
Views: 3477 | Replies: 2
![]() |
•
•
Join Date: Jul 2006
Posts: 22
Reputation:
Rep Power: 3
Solved Threads: 0
Hi guys,
Here is my snippet of input xml file..
[HTML]<Root xmlns="http://www.wfmc.org/2002/XPDL1.0" xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Id="wrkflw6" Name="wrkflw6" xsi:schemaLocation="http://www.wfmc.org....xsd">[/HTML]
Currently, I am not sure how I can modify the my standard xslt to completely ignore all this attributes.I do also realise that ignoring these attributes is not good idea. But the case is that I simply dont need them at all.
How do I change this to incorporate the above said.
[HTML]<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>[/HTML]
Thanks for Ur help...
Cheers
Here is my snippet of input xml file..
[HTML]<Root xmlns="http://www.wfmc.org/2002/XPDL1.0" xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Id="wrkflw6" Name="wrkflw6" xsi:schemaLocation="http://www.wfmc.org....xsd">[/HTML]
Currently, I am not sure how I can modify the my standard xslt to completely ignore all this attributes.I do also realise that ignoring these attributes is not good idea. But the case is that I simply dont need them at all.
How do I change this to incorporate the above said.
[HTML]<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>[/HTML]
Thanks for Ur help...
Cheers
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 936
Reputation:
Rep Power: 5
Solved Threads: 47
that bit of XSLT will still match to the root node; regardless of its namespace. I'd put:
or do some processing within that block..; without a select or name on the <apply-templates/> node, I think that's an illegal instruction.
If you have undeclared namespaces; some XSLT processors will fail. If you take those xmlns attributes out; then any 'xsi' or 'xpdl' nodes in your document will be illegal...
XML Syntax (Toggle Plain Text)
<xsl:template match="/"> <xsl:apply-templates select="*"/> </xsl:template>
or do some processing within that block..; without a select or name on the <apply-templates/> node, I think that's an illegal instruction.
If you have undeclared namespaces; some XSLT processors will fail. If you take those xmlns attributes out; then any 'xsi' or 'xpdl' nodes in your document will be illegal...
If it only works in Internet Explorer; it doesn't work.
•
•
Join Date: Jul 2006
Posts: 22
Reputation:
Rep Power: 3
Solved Threads: 0
Actually the truth is when i remove all the
[html]<Root xmlns="http://www.wfmc.org/2002/XPDL1.0" xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Id="wrkflw6" Name="wrkflw6"
xsi:schemaLocation="http://www.wfmc.org....xsd">[/html]
and change it to this...my output is perfect.
[html]
<Root>[/html]
So I clearly reckon, that I am definetly not using these xpdl,xsi and schemaLocation namespaces...
What I do wanna know is that, does a chnge in XSL file sufficient or the does the change has to be made to the XML engine...???
Cos one of guys in the chat forums told me to change the XMLreader file(in dotNet) but I am using Pyana. So wat is the best option now.
All help appreciated...
[html]<Root xmlns="http://www.wfmc.org/2002/XPDL1.0" xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Id="wrkflw6" Name="wrkflw6"
xsi:schemaLocation="http://www.wfmc.org....xsd">[/html]
and change it to this...my output is perfect.
[html]
<Root>[/html]
So I clearly reckon, that I am definetly not using these xpdl,xsi and schemaLocation namespaces...
What I do wanna know is that, does a chnge in XSL file sufficient or the does the change has to be made to the XML engine...???
Cos one of guys in the chat forums told me to change the XMLreader file(in dotNet) but I am using Pyana. So wat is the best option now.
All help appreciated...
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb XML, XSLT and XPATH Marketplace
- [urgent] HTML form => XML file (JSP)
- Multiple Table Reading From An Xml File (VB.NET)
- Displayind data in XML file using HTML (RSS, Web Services and SOAP)
- problem reading xml file in c# (C#)
- parsing error (XML file-java-schema) (Java)
- input data from a file into an Array (C)
- Pass XML file contents to a hash table. (Java)
Other Threads in the XML, XSLT and XPATH Forum
- Previous Thread: Integrated Windows Security
- Next Thread: how to send mails directly ?????


Linear Mode