A small problem, is there any one who can solve it.
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 3
- Joined: Mon Jan 21, 2008 9:25 am
A small problem, is there any one who can solve it.
Post by s.amitsaini »
Hi All
I got a problem , is there any one who can solve it....
I have Xml file like that…
<Project>
<Body>
<ADDRESS PRIMARY="yes">
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
<ADDRESS>
<TXT LANGUAGE="en">damy text</TXT>
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
<ADDRESS>
<TXT LANGUAGE="en">damy text</TXT>
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
<ADDRESS>
<TXT LANGUAGE="en">damy text</TXT>
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
</Body>
</Project>
I want the output like that
<Project>
<Body>
<ADDRESS>
<TXT LANGUAGE="en">damy text</TXT>
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
<ADDRESS>
<TXT LANGUAGE="en">damy text</TXT>
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
<ADDRESS>
<TXT LANGUAGE="en">damy text</TXT>
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
</Body>
</Project>
I don’t want the element ADDRESS which have the primary =yes….
Any body can help me…
I got a problem , is there any one who can solve it....
I have Xml file like that…
<Project>
<Body>
<ADDRESS PRIMARY="yes">
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
<ADDRESS>
<TXT LANGUAGE="en">damy text</TXT>
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
<ADDRESS>
<TXT LANGUAGE="en">damy text</TXT>
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
<ADDRESS>
<TXT LANGUAGE="en">damy text</TXT>
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
</Body>
</Project>
I want the output like that
<Project>
<Body>
<ADDRESS>
<TXT LANGUAGE="en">damy text</TXT>
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
<ADDRESS>
<TXT LANGUAGE="en">damy text</TXT>
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
<ADDRESS>
<TXT LANGUAGE="en">damy text</TXT>
<TXT LANGUAGE="en">damy text</TXT>
</ADDRESS>
</Body>
</Project>
I don’t want the element ADDRESS which have the primary =yes….
Any body can help me…
-
- Posts: 3
- Joined: Mon Jan 21, 2008 9:25 am
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Very similar to:
http://www.oxygenxml.com/forum/ftopic2704.html
http://www.oxygenxml.com/forum/ftopic2704.html
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="ADDRESS[@PRIMARY='yes']"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service