Need more details on xsl:when
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 18
- Joined: Thu Jan 21, 2016 10:28 am
Need more details on xsl:when
Post by Nikky_zhang »
I am confused by one code in xsl:when, if you can help,please do
the code is
<xsl: when test="name(/*)='bookmap'">
<xsl:value-of select="'even""/>
I can not undestand name=(/*). If here wants to seach all the node why it does not write name()? what /* for?
Thanks
the code is
<xsl: when test="name(/*)='bookmap'">
<xsl:value-of select="'even""/>
I can not undestand name=(/*). If here wants to seach all the node why it does not write name()? what /* for?
Thanks
-
- Posts: 9433
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Need more details on xsl:when
Hi,
The XPath /* means root-element (the root element of the XML) and name(/*) means the name of the XML root element.
Your post is not Oxygen-related so ideally in the future you could write XSLT-related questions on the public XSLT mailing lists:
http://www.mulberrytech.com/xsl/xsl-list/
Regards,
Radu
The XPath /* means root-element (the root element of the XML) and name(/*) means the name of the XML root element.
Your post is not Oxygen-related so ideally in the future you could write XSLT-related questions on the public XSLT mailing lists:
http://www.mulberrytech.com/xsl/xsl-list/
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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