XSLTGeneral questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Hi All and thanks for this helpful forum. I've exhausted all my resources trying to save/display an attribute into a Global variable. I'm not getting an error, but nothing is being written to the variable. Thanks for any help...
Excerpt from My xslt:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
<xsl:variable name="ArcChoice"
select="/MissionProfile/Profile[@Name='Arc'][@Value]" />
Excerpt from My xml:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='MissionProfile.xsl'?>
<MissionProfile>
<Profile name="Arc" value="250"/>
I just need to capture the value of Profile, named "Arc"...