Count equals string
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 1
- Joined: Thu Nov 11, 2010 9:40 am
Count equals string
So i have a xml file
I need to count how many times each promotion is visited , and caunt diffrent reff for each promotion
Can someone help me with this transformation.
Sorry for bad English but is not my native language.
Code: Select all
<ApacheLog>
<LOGS>
<Request>GET promotion2.html HTTP/1.0</Request>
<Reff>www.yahoo.com</Reff>
</LOGS>
<LOGS>
<Request>GET promotion1.html HTTP/1.0</Request>
<Reff>www.yahoo.com</Reff>
</LOGS>
<LOGS>
<Request>GET promotion1.html HTTP/1.0</Request>
<Reff>www.google.com</Reff>
</LOGS>
</ApacheLog>
Code: Select all
<ApacheLog>
<LOGS>
<promotion1>2</Request>
<numReff>2</RemoteHost>
</LOGS>
<LOGS>
<promotion2>1</Request>
<numReff>1</RemoteHost>
</LOGS>
</ApacheLog>
Sorry for bad English but is not my native language.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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