| 
 
Subject: [xsl] unparsed-text and analyze-string From: Terry Ofner <tofner@xxxxxxxxxxx> Date: Mon, 21 Jan 2008 17:03:19 -0500  | 
1 XSLT means-- (G6U1S01) A extensible stylesheet language transformations. B extremely sly lexical transformations. C XML stylesheet language transformations. D all the above
2 Stem display sentence (optional) stem part 2 (optional) (G6U1S01) A answer choice B answer choice C answer choice D answer choice
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:param name="input-uri"/> <xsl:output indent="yes"/>
<xsl:template name="main">
  <xsl:variable name="in"
              select="unparsed-text($input-uri, 'UTF-8')"/><xsl:analyze-string select="$in" regex="\t([A-D])\t(.*)
">
  <xsl:matching-substring>
  <xsl:variable name="choiceLetter" select="regex-group(1)"/>
  <xsl:variable name="choiceLower" select="lower-case($choiceLetter)"/>
    <xsl:element name="choice-{$choiceLower}">
    <xsl:value-of select="regex-group(2)"/>
    </xsl:element><xsl:text>
</xsl:text>
  </xsl:matching-substring>
  <xsl:non-matching-substring>
     <xsl:value-of select="."/>
  </xsl:non-matching-substring>
</xsl:analyze-string>
</xsl:template>
1 XSLT means-- (G6U1S01) <choice-a>extensible stylesheet language transformations.</choice-a> <choice-b>extremely sly lexical transformations.</choice-b> <choice-c>XML stylesheet language transformations.</choice-c> <choice-d>all the above</choice-d>
1 XSLT means-- <notes>G6U1S01</notes> <choice-a>extensible stylesheet language transformations.</choice-a> B extremely sly lexical transformations. C XML stylesheet language transformations. D all the above
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] The identity transform an, Wendell Piez | Thread | Re: [xsl] unparsed-text and analyze, G. Ken Holman | 
| Re: [xsl] The identity transform an, Tony Graham | Date | [xsl] List History [was: The identi, B Tommie Usdin | 
| Month |