Commit f279221e authored by O'Reilly Media, Inc.'s avatar O'Reilly Media, Inc.
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading

9780596003272

0 → 120000
+1 −0
Changes for 9780596003272: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
9780596003272
 No newline at end of file

README.md

0 → 100644
+15 −0
Changes for README.md: 15 added lines, 0 removed lines.
Original line number Diff line number Diff line
## Example files for the title:  
  
# Learning XSLT, by Michael Fitzgerald
  
[![Learning XSLT, by Michael Fitzgerald](http://akamaicovers.oreilly.com/images/9780596003272/cat.gif)](https://www.safaribooksonline.com/library/view/title/0596003277//)
  
The following applies to example files from material published by O’Reilly Media, Inc. Content from other publishers may include different rules of usage. Please refer to any additional usage rights explained in the actual example files or refer to the publisher’s website.
  
O'Reilly books are here to help you get your job done. In general, you may use the code in O'Reilly books in your programs and documentation. You do not need to contact us for permission unless you're reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from our books does not require permission. Answering a question by citing our books and quoting example code does not require permission. On the other hand, selling or distributing a CD-ROM of examples from O'Reilly books does require permission. Incorporating a significant amount of example code from our books into your product's documentation does require permission.
  
We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN.
  
If you think your use of code examples falls outside fair use or the permission given here, feel free to contact us at <permissions@oreilly.com>.
  
Please note that the examples are not production code and have not been carefully testing. They are provided "as-is" and come with no warranty of any kind.
+24.9 KiB

File added.

No diff preview for this file type.

+49.3 KiB

File added.

No diff preview for this file type.

+110 −0
Changes for learningxslt2/Ox/readme.txt: 110 added lines, 0 removed lines.
Original line number Diff line number Diff line
Ox Documentation Tool version 0.5 2003-11-06
(c) Wy'east Communications, Mapleton, Utah, USA.
Mike Fitzgerald (mike@wyeast.net)

The Ox Documentation Tool is an open-source Java commmand-line
tool that displays brief syntax-related documentation for
XSLT 1.0 and XPath 1.0.

Display license:

 java -jar ox.jar -l

Display help:

 java -jar ox.jar -help

Display all terms (without definitions):

 java -jar ox.jar -all

Display defintion of a term (element):

 java -jar ox.jar xsl:key

Returns to standard output:

 xsl:key XSLT top-level element
  Declares a key that can be later used with the key() function.

 Attributes:
  name = QName for the key
  match = pattern that the key matches
  use = expression (from matched pattern)

 Content: none

 Example:
  <xsl:key name="State" match="nation/state" use="name"/>

 See Also: key()

Display defintion of a term (function):

 java -jar ox.jar position()

Returns to standard output:

 position() XPath function
  Returns the context position of the current node.

 Return type: number

 Arguments: none

 Example:
  <xsl:value-of select="position()"/>

Display defintion of a term (phrase, enclosed in double quotes):

 java -jar ox.jar "attribute value template"

Returns to standard output:

 attribute value template
  In XSLT, an expression that is surrounded
  by braces and contained in an attribute
  value. For example, the following literal
  result element has an attribute value that
  contains an attribute value template: <days
  number="{3 + $week}">. days is the element
  name, number is the attribute name,
  and the attribute value template, in
  braces, is evaluated to 3 plus the value of
  the week variable. (See "Variable.")
  Attribute value templates may be found in
  the attribute value of literal result elements
  and in XSLT elements that allow
  them, such as in the name attribute of the
  element or attribute instruction elements.

Display multiple terms at once:

 java -jar ox.jar xsl:text xsl:attribute xsl:template

Or use the -xsl option (for terms prefixed with xsl: only):

 java -jar ox.jar -xsl text attribute template

Use the Windows shell script if you prefer:

 ox xsl:text

Here is the script ox.bat:

@echo off
rem run Ox documentation tool on Windows
rem use replaceable parameters %1 %2 %3 %4 %5 %6 %7 %8 %9
rem if not NT/2000/XP
java -jar ox.jar %*

Use the Unix shell script if you prefer:

 ox.sh xsl:text

Here is the script ox.sh:

#! /bin/sh
# run Ox documentation tool in a shell
java -jar ox.jar $*
Loading